[Python-ideas] millisecond and microsecond times without floats
Serhiy Storchaka
storchaka at gmail.com
Wed Jun 24 06:59:12 CEST 2015
On 23.06.15 02:15, Paul Sokolovsky wrote:
> Hello from MicroPython, a lean Python implementation
> scaling down to run even on microcontrollers
> (https://github.com/micropython/micropython).
>
> Our target hardware base oftentimes lacks floating point support, and
> using software emulation is expensive. So, we would like to have
> versions of some timing functions, taking/returning millisecond and/or
> microsecond values as integers.
What about returning decimals or special fixed-precision numbers
(internally implemented as 64-bit integer with constant scale 1000 or
1000000)?
More information about the Python-ideas
mailing list