Libraryless. Click here for Pure Java version (13035L/74K).
1 | static int[] iroundDoubleArray(double[] a, int start, int end) { |
2 | int[] b = new[end-start]; |
3 | for (int i = start; i < end; i++) |
4 | b[i-start] = iround(a[i]); |
5 | ret b; |
6 | } |
7 | |
8 | static int[] iroundDoubleArray(double[] a) { |
9 | ret a == null ?: iroundDoubleArray(a, 0, a.length); |
10 | } |
Began life as a copy of #1033248
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035701 |
Snippet name: | iroundDoubleArray |
Eternal ID of this version: | #1035701/1 |
Text MD5: | 2b9d75e9856693da1fdfa4be5f20e226 |
Transpilation MD5: | a94183c8cc0f3781c8bdfa75de52c445 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-09 21:01:50 |
Source code size: | 281 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 153 / 183 |
Referenced in: | [show references] |