| Store | Cart

float default formatting

From: Bernard Delmée <bdel...@advalvas.REMOVEME.be>
Thu, 24 Mar 2005 23:43:11 +0100
Is there a simple way to modify the default sprintf mask
used for floats ? (eg something like sys.float_mask = '%.2f')
I've tried assigning to float.__dict__[ '__str__' ], but
that's apparently not allowed.

Recent Messages in this Thread
Bernard Delmée Mar 24, 2005 10:43 pm
Tim Roberts Mar 26, 2005 09:00 am
Bernard Delmée Mar 26, 2005 12:49 pm
Messages in this thread