# Payload: Float64array

**URL:** <https://discourse.nodered.org/t/payload-float64array/27727>\
**Category:** General\
**Created:** [3 June 2020 18:09 UTC](https://discourse.nodered.org/t/payload-float64array/27727 "2020-06-03T18:09:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rowen826](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rowen826](https://discourse.nodered.org/u/rowen826)\
**Post date:** [3 June 2020 18:09 UTC](https://discourse.nodered.org/t/payload-float64array/27727/1 "2020-06-03T18:09:32Z")

</div>

Hello everyone,

I have a CNC reporting some torque data using OPC UA. The problems is that the data format(?) is in Float64Array and the reported value (debugging) shows double quotes. How do I convert this to a usable number(no double quotes nor Float64Array) ? I'll be sending this numeric value to InfluxDB eventually.

6/3/2020, 11:59:15 AMnode: f1466b5.4f00618  
ns=27;s=NC.Chan.ActSpindleTorque,01,ActiveValue : **msg.payload : Float64Array**  
**"-0.30000000000000004"**

-L

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [3 June 2020 18:23 UTC](https://discourse.nodered.org/t/payload-float64array/27727/2 "2020-06-03T18:23:43Z")

</div>

It behaves just like a regular array, no conversion needed. You can access the first element with `msg.payload[0]`.

> **[Float64Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array)**
>
> The Float64Array typed array represents an array of 64-bit floating point numbers (corresponding to the C double data type) in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0....

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 August 2020 18:23 UTC](https://discourse.nodered.org/t/payload-float64array/27727/3 "2020-08-02T18:23:48Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
