MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / PercentCycler

Class PercentCycler

brainworkshop.py:1913–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1911 return str(self.value())
1912
1913class PercentCycler(Cycler):
1914 def __str__(self):
1915 v = self.value()
1916 if type(v) == float and (v < .1 or v > .9) and not v in (0., 1.):
1917 return "%2.2f%%" % (v*100.)
1918 else:
1919 return "%2.1f%%" % (v*100.)
1920
1921class Menu:
1922 """

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected