Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Off topic discussion • Re: Python Floating point addtion question

$
0
0
Today's adventure was rewriting my 'bignum float library' so 'bigfloat' numbers can be used as any other numbers within Python and MicroPython code and I have implemented division and modulo -

Code:

top = bigfloat(12300.0)bot = bigfloat(0.00456)div = top / botprint(div, str(div), repr(div), int(div), float(div), complex(div)) 
I'll post the source code and a link to that once I have bashed a suitable post into shape.

Statistics: Posted by hippy — Sun Aug 24, 2025 2:20 am



Viewing all articles
Browse latest Browse all 8093

Trending Articles