Libraryless. Click here for Pure Java version (10809L/59K).
1 | svoid assertEquals_6digits(S msg default "", double x, double y) { |
2 | assertEquals(formatDouble_significant(x, 6), formatDouble_significant(y, 6)); |
3 | } |
Began life as a copy of #1033288
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): gjtlkbvenryc, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1038299 |
Snippet name: | assertEquals_6digits - assert two doubles are the same for at least 6 significant digits |
Eternal ID of this version: | #1038299/1 |
Text MD5: | 412a88fd013da3d317e5a40817323e23 |
Transpilation MD5: | 92348ac037e5e0cda767dd540959cf77 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2024-06-23 22:36:14 |
Source code size: | 150 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 86 / 126 |
Referenced in: | [show references] |