On Oct 7, 3:43 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: > > def format_size(n, binary, precision?) > > ``n`` -- the number > > ``binary`` -- true to use base 1024 and the "Gi" series. > > ``precision`` -- not sure about this
I think "precision" should be an indication of significant figures. So a precision of 3 would give: 1.32GB or 432B whoever, if someone asks for a precision of say, 4, should they get: 1024B or 1.000kB -Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
