Menu

Value

Nicolas Hainaux
Attachments
dbg_value.png (935 bytes)
memo_value.png (1392 bytes)
There is a newer version of this page. You can find it here.

/!\ just a draft

This class is just a kind of wrapper for simple numbers and strings. If any other object needs to use a number or a string in its fields, it must embed it in a Value. This is to be sure that any field is actually an object that provides all methods of Value and hence can be tested, evaluated etc. as any other Calculable object.

Please note that Values do not derive from Exponented. No exponent.

All numbers stored in a Value will be converted, if necessary, into decimal.Decimal and hence will provide associated methods (like rounding methods...). Value provides itself some methods more practical to use, that are kind of shortcuts for methods from decimal.Decimal.

Possible args for __init__() :

Fields :

Debugging info :


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.