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

7
LINES

< > BotCompany Repo | #1036279 // doubleArrayToFloatArray

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

Libraryless. Click here for Pure Java version (44L/1K).

1  
static float[] doubleArrayToFloatArray(double[] a) {
2  
  int n = lDoubleArray(a);
3  
  float[] b = new[n];
4  
  for i to n:
5  
    b[i] = (float) a[i];
6  
  ret b;
7  
}

Author comment

Began life as a copy of #1036278

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036279
Snippet name: doubleArrayToFloatArray
Eternal ID of this version: #1036279/1
Text MD5: fb7dd1b6a1bc6ed19aad5f88fe373606
Transpilation MD5: b7a021a8138bc5d850d1295704b3f397
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-08 13:10:11
Source code size: 157 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 58 / 85
Referenced in: [show references]