Sign in to follow this  
SteveMyres

New format() strings

Recommended Posts

I like the idea of %u, where it will automagically roll between floating point and exponential notation, but you can't specify the number of decimal places like you can with %f, so I'd like to be able to do that.

I'd also like to have a format string for "engineering notation", which is exponential, but with the exponents are limited to multiples of three, and the mantissa can range from one to three places before the decimal.  Thus, the exponential part is always thousands, millions, billions, etc.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this