# Making a calculator - floating point errors?

**URL:** <https://forums.unrealengine.com/t/making-a-calculator-floating-point-errors/362000>\
**Category:** Community & Industry Discussion\
**Tags:** error, math, variables, float, unreal-engine, question\
**Created:** [June 25, 2016, 4:45pm UTC](https://forums.unrealengine.com/t/making-a-calculator-floating-point-errors/362000 "2016-06-25T16:45:18Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Krxtopher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krxtopher](https://forums.unrealengine.com/u/Krxtopher)\
**Post date:** [June 27, 2016, 12:17am UTC](https://forums.unrealengine.com/t/making-a-calculator-floating-point-errors/362000/10 "2016-06-27T00:17:52Z")

</div>

My guess is that you won’t have an issue if you do your calculations at the C++ level. Even if you don’t know C++ it’s fairly easy to create a custom function in C++ that you can use as a node in your blueprints. I don’t quite remember how to do it, but I’ve done it before (and I don’t consider myself very knowledgeable about C++). Here are some Wiki posts that may help guide you through the process:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

This one even has an example of a float addition node:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/making-a-calculator-floating-point-errors/362000)._
