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

4
LINES

< > BotCompany Repo | #1036333 // formatWith2OrZeroDecimals

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

Transpiled version (9707L) is out of date.

sS formatWith2OrZeroDecimals(double x) {
  S s = formatDouble2X(x);
  ret dropSuffix(".00", s);
}

Author comment

Began life as a copy of #1036332

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036333
Snippet name: formatWith2OrZeroDecimals
Eternal ID of this version: #1036333/3
Text MD5: dfe578e6cb2661a430f71c71c1338ef9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-20 15:15:09
Source code size: 100 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 61 / 89
Version history: 2 change(s)
Referenced in: [show references]