performance - Fastest algorithm to calculate the Normalized and Engineering Scientific notation of a number -
performance - Fastest algorithm to calculate the Normalized and Engineering Scientific notation of a number -
test case :
35000
-> normalized scientific notation of number 3.5 * 10e4
-> engineering science notation 35 * 10e3
a simple algorithm maintain dividing number 10 until notations required. mean algorithm o(number of zeros). can better?
the classic paper on subject of printing human-friendly representations of floating point numbers can read here. it's much complex discussed code in reply here.
performance algorithm scientific-notation numerical-analysis
Comments
Post a Comment