Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1035701 // iroundDoubleArray

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (13035L/74K).

static int[] iroundDoubleArray(double[] a, int start, int end) {
  int[] b = new[end-start];
  for (int i = start; i < end; i++)
    b[i-start] = iround(a[i]);
  ret b;
}

static int[] iroundDoubleArray(double[] a) {
  ret a == null ?: iroundDoubleArray(a, 0, a.length);
}

Author comment

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: 57 / 82
Referenced in: [show references]