From 122f457226f54ad23b7cd138512502e430e704dc Mon Sep 17 00:00:00 2001 From: Mac Mollison Date: Sat, 13 Mar 2010 12:12:37 -0500 Subject: Further restructuring to create 'unit_trace' pkg The unit_trace folder should be placed in /usr/local/lib/pythonX.Y/site-packages. This makes unit-trace submodules available from anywhere on the system. --- viz/util.py | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 viz/util.py (limited to 'viz/util.py') 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 @@ -#!/usr/bin/python - -"""Miscellanious utility functions that don't fit anywhere.""" - -def format_float(num, numplaces): - if abs(round(num, numplaces) - round(num, 0)) == 0.0: - return '%.0f' % float(num) - else: - return ('%.' + numplaces + 'f') % round(float(num), numplaces) -- cgit v1.2.2