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


< > BotCompany Repo | #1036279 // doubleArrayToFloatArray

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

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

static float[] doubleArrayToFloatArray(double[] a) {
  int n = lDoubleArray(a);
  float[] b = new[n];
  for i to n:
    b[i] = (float) a[i];
  ret b;

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