[This is a repost of a thread I started on RaceDepartment.com and just wanted to have on my blog, as well.] I thought the GTR2 fans would find these results on the precision of GTR2 FFB interesting. For the record, I run a SimXperience Accuforce direct drive wheel. Precision probably wouldn’t be as noticeable on…
Tag: precision
How to Round to Arbitrary Precision in any Programming Language
How to Round to Arbitrary Precision in any Programming Language: an AMultiply your rounding number by 10^y where y is the precision to round to. Call your language’s built-in round() method on this number. Divide the result by 10^y. Easy peasy. It also makes it easier to implement different rounding methods because you’re always dealing with the digit at the same location in the number.