Join GitHub today
Print::printFloat should print "inf" when appropriate [imported] #961
This is Issue 961 moved from a Google Code project.
Original labels: Type-Defect, Priority-Medium, Milestone-1.0.2, Component-Core
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect to see "inf" but I see zero. Issue 946 now prints nan rather than zero (for 0.0/0.0), but I suggest that 1.0/0.0 should print "inf" and not zero.
What version of the Arduino software are you using? On what operating
Please provide any additional information below.
Suggest changing Print::printFloat to add, near the start:
if (isinf (number))