Libraryless. Click here for Pure Java version (86L/1K).
static double toSeconds(long ms) { ret ms/1000.0; } static S toSeconds(long ms, int digits) { ret formatDouble(toSeconds(ms), digits); } static double toSeconds(double ms) { ret ms/1000.0; } static S toSeconds(double ms, int digits) { ret formatDouble(toSeconds(ms), digits); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1006755 |
| Snippet name: | toSeconds - convert milliseconds to seconds (double) |
| Eternal ID of this version: | #1006755/4 |
| Text MD5: | b0d0bd758b7c1c4635e97e065a48bd32 |
| Transpilation MD5: | 66edd9083dfa8d1a26d5beefa008b8b1 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-10 13:57:17 |
| Source code size: | 302 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1119 / 1357 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |