Discord
Login
Community
DARK THEME

How to use decimal data type

i am making a system that calculates pi, and i need it to be LONG, in python on my computer i can import the decimal data type and set it’s precision, and it’s super easy.

Does microscript do this in any way

I really need this

Unfortunately, MicroScript doesn’t have arbitrary-precision math like Python’s decimal module. It only supports standard floating-point number, so you’ll run into rounding limits after a certain number of digits.

If you really need high precision, you’d have to simulate it manually — for example, by storing digits as arrays or strings and writing custom addition/multiplication functions. It’s doable, but definitely slower.

do you know how I could do that.

it’s kinda required for a project of mine

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community