Talk:Getting the number of decimal places: Difference between revisions

Line 17:
 
:: To concretise a little, the initial Python suggestion just errors when the given number is math.e, math.pi, or math.tau, all of which have Python type `float` and are quite hard not to think of as 'numbers', in terms of the task title. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:22, 14 August 2020 (UTC)
 
===Strings===
The "number of decimals" I took as being a function of how a number is represented. It is either stated implicitly or implied by its ''string'' representation. 1.0, 1.00, 1.000, and 1.0000 would all have the same floating point value in Python, but when read can suggest differing levels of precision used in calculating a value, (at least in Physics and Engineering when they pay attention to significant digits). --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 08:12, 16 August 2020 (UTC)
Anonymous user