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

4
LINES

< > BotCompany Repo | #1007643 - formatDouble

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

Libraryless. Click here for Pure Java version (72L/1K).

static String formatDouble(double d, int digits) {
  S format = digits <= 0 ? "0" : "0." + rep(digits, '#');
  ret decimalFormatEnglish(format, d);
}

Author comment

Began life as a copy of #2000510

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1007643
Snippet name: formatDouble
Eternal ID of this version: #1007643/4
Text MD5: 309a031633d7e06f9a934421bcf3db12
Transpilation MD5: 3cdd312e4ba99dca623aa7464daae0d2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-20 22:44:49
Source code size: 154 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 446
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1007643 & http://1007643.tinybrain.de