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

Content added Content deleted
Line 16: Line 16:
:: Something else ? (we read <code>pi</code> as a system constant, bound to some unspecified member of a zoo of types that might include creatures like f32, f64, i32, i64, i128, or perhaps even their cousins u32, u64, u128, each of which would contain expansions of pi to different digit lengths - most of them zero) ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:10, 14 August 2020 (UTC)
:: Something else ? (we read <code>pi</code> as a system constant, bound to some unspecified member of a zoo of types that might include creatures like f32, f64, i32, i64, i128, or perhaps even their cousins u32, u64, u128, each of which would contain expansions of pi to different digit lengths - most of them zero) ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:10, 14 August 2020 (UTC)


:: To concretise a little, the initial Python suggestion just errors when the given number is math.e, math.pi, or math.tau [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:22, 14 August 2020 (UTC)
:: 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)