Help with BigNumber

Posted by Matteo90 on Thu 25 Sep 2014 08:59 AM — 2 posts, 15,922 views.

#0
Hi, my name is Matteo and i am using BigNumber library (version 3.0) in Arduino but i have a problem.
I have seen that if i want to do math operations with numbers with digits after decimal point there is an error.
I try to explain better: if i give to arduino 5.8*2.1 the result is 10 and not 12.18.
Instead if these numbers (5.8 and 2.1) are given from others math operations and then i do 5.8*2.1 the result is right (12.18). Why?
Is there a solution for my problem?
Matteo.
Australia Forum Administrator #1
Template:Arduino
Please post Arduino-related questions to the Arduino Forum or to StackExchange: Arduino. This saves splitting questions and answers between this forum and the Arduino ones.


Quote:

Is there a solution for my problem?


Yes. And when you post your question on the Arduino forum include your code.