Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1018794 // test_formatDouble_significant2 (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (5817L) is out of date.

1  
svoid test_formatDouble_significant2() {
2  
  assertEqualsVerbose("12345", formatDouble_significant2(12345, 3));
3  
  assertEqualsVerbose("1234", formatDouble_significant2(1234.5, 3));
4  
  assertEqualsVerbose("123", formatDouble_significant2(123.45, 3));
5  
  assertEqualsVerbose("123.5", formatDouble_significant2(123.45, 4));
6  
  assertEqualsVerbose("-123.5", formatDouble_significant2(-123.45, 4));
7  
  assertEqualsVerbose("12.3", formatDouble_significant2(12.345, 3));
8  
  assertEqualsVerbose("1.23", formatDouble_significant2(1.234, 3));
9  
  assertEqualsVerbose("1.234", formatDouble_significant2(1.234, 4));
10  
  assertEqualsVerbose("0.0123", formatDouble_significant2(0.01234, 3));
11  
  assertEqualsVerbose("0", formatDouble_significant2(0, 3));
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, elmgxqgtpvxh, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018794
Snippet name: test_formatDouble_significant2 (OK)
Eternal ID of this version: #1018794/9
Text MD5: 0d17531d9b04fb49cd4a971a6b5e27c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-05 18:39:29
Source code size: 740 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 298 / 602
Version history: 8 change(s)
Referenced in: [show references]