MCPcopy Create free account
hub / github.com/geekcomputers/Python / get_number

Method get_number

nitkarshchourasia/to_sort/determine_sign.py:36–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 # Now use this in other methods.
35
36 def get_number(self):
37 self.input_value = format(float(input("Enter a number: ")), ".1f")
38 self.num = round(self.convert_to_float(self.input_value), 1)
39 return self.num
40 # Do I want to return the self.num?
41 # I think I have to just store it as it is.
42
43 def determine_sign(self):
44 if self.num > 0:

Callers 1

__init__Method · 0.95

Calls 1

convert_to_floatMethod · 0.95

Tested by

no test coverage detected