// It's the super precise version! static double roundToOneHundredth(double d) { ret new BigDecimal(d).setScale(2, RoundingMode.HALF_UP).doubleValue(); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010306 |
Snippet name: | roundToOneHundredth |
Eternal ID of this version: | #1010306/2 |
Text MD5: | ffd6e08ce84a6c5750a49216cc6ca7d3 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-11 01:20:22 |
Source code size: | 158 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 480 / 493 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |