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

Method parse_answer

brainworkshop.py:3146–3154  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3144 self.label.bold = False
3145
3146 def parse_answer(self):
3147 chars = ''.join(self.answer)
3148 if chars == '' or chars == '.':
3149 result = Decimal('0')
3150 else:
3151 result = Decimal(chars)
3152 if self.negative:
3153 result = Decimal('0') - result
3154 return result
3155
3156 def input(self, input):
3157 if input == '-':

Callers 3

updateMethod · 0.95
check_matchFunction · 0.80
save_inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected