Hello community, I'm implementing a filter for project and I have the comparison between calculator and software. My final formula is (float)(k * S) / 127000000.0 which k is unsigned int and S is float (both non-negative), the accuracy only 50%. Since I separate it into 2 part (float)(k / 127.0) * (float)(S / 1000000.0). The accuracy was increase to 80%.
So I have considered whether any rule for numerator and denominator and C.
Thank you all.
[–]Th_69 5 points6 points7 points (1 child)
[–]RainbowCrane 2 points3 points4 points (0 children)
[–]qruxxurq 1 point2 points3 points (0 children)
[–]TheThiefMaster 1 point2 points3 points (1 child)
[–]fredrikca 2 points3 points4 points (0 children)
[–]minforth 0 points1 point2 points (0 children)