diff options
Diffstat (limited to 'viz/util.py')
-rw-r--r-- | viz/util.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/viz/util.py b/viz/util.py deleted file mode 100644 index 3111f39..0000000 --- a/viz/util.py +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #!/usr/bin/python | ||
2 | |||
3 | """Miscellanious utility functions that don't fit anywhere.""" | ||
4 | |||
5 | def format_float(num, numplaces): | ||
6 | if abs(round(num, numplaces) - round(num, 0)) == 0.0: | ||
7 | return '%.0f' % float(num) | ||
8 | else: | ||
9 | return ('%.' + numplaces + 'f') % round(float(num), numplaces) | ||