# Floating point calculation speed

**URL:** <https://discourse.nodered.org/t/floating-point-calculation-speed/12669>\
**Category:** General\
**Created:** [27 June 2019 16:58 UTC](https://discourse.nodered.org/t/floating-point-calculation-speed/12669 "2019-06-27T16:58:01Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![rburton](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rburton](https://discourse.nodered.org/u/rburton)\
**Post date:** [9 July 2019 20:32 UTC](https://discourse.nodered.org/t/floating-point-calculation-speed/12669/21 "2019-07-09T20:32:49Z")

</div>

So scrap Math.pow and just use conventional A \* A, and when you say precalc radian to degree should that be put into a var PI = and then just call it when needed?  
was considering just radians throughout as I think the servo control board can input radians.  
@hotNipi Yeah its probably not needed to be fair the only reason I was going to covert it was to reduce the number length, but if it's going to have a negative effect on processing time them maybe leave it, but at least I know how to do it now.

---

_[View the full topic](https://discourse.nodered.org/t/floating-point-calculation-speed/12669)._
