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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -