View Single Post
  #9   Spotlight this post!  
Unread 07-24-2015, 10:42 PM
Jonathan L. Jonathan L. is offline
Registered User
FRC #1094
 
Join Date: Jan 2013
Location: St. Louis MO
Posts: 60
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: Summer Labview Challenge 2

Here's Part 2.

Quote:
Originally Posted by Greg McKaskle View Post
The strange bug happens because by the time you have made it to the penny calculation, the remainder is no longer a full two cents. If you display it with about 15 digits of precision, it is truly just a bit below, so the node returns almost a full penny as a remainder. This is largely due to the fact that floats cannot store base ten fractions precisely. The mixup rounds the value so that the small cumulative error resets. A different fixup would be to convert the initial value to units of pennies instead of dollars.

Greg McKaskle
Thank you for explaining. So is this something that can be fixed by NI or just a quark in programming? I remember there was something similar last year with the equal function but that seems to have been fixed.
Attached Thumbnails
Click image for larger version

Name:	Summer LabVIEW Challenge 2 Part 2.png
Views:	10
Size:	56.9 KB
ID:	19228  
Reply With Quote