1 | static long round(double d) {
|
2 | ret Math.round(d); |
3 | } |
4 | |
5 | sS round(S s) {
|
6 | ret roundBracket(s); |
7 | } |
8 | |
9 | ifclass Complex |
10 | static Complex round(Complex c) {
|
11 | ret Complex(round(c.re), round(c.im)); |
12 | } |
13 | endif |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002176 |
| Snippet name: | round - round double to long. also, synonym of roundBracket |
| Eternal ID of this version: | #1002176/5 |
| Text MD5: | e166bcba06fee2cea407d62361f28386 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-03 05:09:23 |
| Source code size: | 206 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1142 / 1906 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |