Skip to main content
6 events
when toggle format what by license comment
Feb 21, 2016 at 17:01 comment added Iker @Chad that's a fair point, there's certainly not enough data from the OP to tell what exactly is the precision level they need.
Feb 21, 2016 at 13:33 comment added Chad @Iker You're right. Though you, nor the person asking the question have specified what exactly calculations they're trying to achieve and the precision they want. He needs to answer that question first before jumping the gun into number theory. Just saying lot of mathematical calculations isn't helpful nor the answers given. In the vast majority of the case (if you're not dealing with currency) then float should really suffice.
Feb 21, 2016 at 12:23 comment added Iker @Chad True, but the goal is not to eliminate rounding problems (which will always exist, because in any base you use there are some numbers that have no exact representation, and you don't have infinite memory and processing power), it's to reduce it to the point it has no effect in the calculation you are trying to do.
Feb 21, 2016 at 7:52 comment added Chad Even without floating point values you're still going to run into round problems.
Jun 26, 2013 at 18:18 comment added JNL I am using VC++ right now... But I would appreciate any more information regarding other programming languages too.
Jun 26, 2013 at 18:15 history answered Mason Wheeler CC BY-SA 3.0