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

9
LINES

< > BotCompany Repo | #1032148 // formatDouble_noDotZero

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

Libraryless. Compilation Failed (3121L/17K).

sS formatDouble_noDotZero(double d, int digits) {
  S s = formatDouble(d, digits);
  ret dropSuffix(".0", s);
}

sS formatDouble_noDotZero(double d) {
  S s = formatDouble(d);
  ret dropSuffix(".0", s);
}

Author comment

Began life as a copy of #1028470

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032148
Snippet name: formatDouble_noDotZero
Eternal ID of this version: #1032148/1
Text MD5: 178a43d9a5d3c8635fc0adf0f3f8eb59
Transpilation MD5: 5a2573967528c9fb3eb76a981e70a5e9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-14 11:00:08
Source code size: 212 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 69 / 101
Referenced in: [show references]