Libraryless. Click here for Pure Java version (86L/1K).
1 | static double toSeconds(long ms) { |
2 | ret ms/1000.0; |
3 | } |
4 | |
5 | static S toSeconds(long ms, int digits) { |
6 | ret formatDouble(toSeconds(ms), digits); |
7 | } |
8 | |
9 | static double toSeconds(double ms) { |
10 | ret ms/1000.0; |
11 | } |
12 | |
13 | static S toSeconds(double ms, int digits) { |
14 | ret formatDouble(toSeconds(ms), digits); |
15 | } |
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: | 681 / 797 |
Version history: | 3 change(s) |
Referenced in: | [show references] |