0
$\begingroup$

As per Wikipedia, the Q number format is

A binary fixed point number format where the number of fractional bits (and optionally the number of integer bits) is specified. For example, a Q1.14 number has 1 integer bit and 14 fractional bits.

Is there something like this for decimal numbers?

I'm writing a Solidity math library that works with fixed-point numbers, and I would prefer to give these numbers a bespoke name. I'm thinking of "signed 59.18 decimal numbers", since there can be up to 59 digits in the integer part and up to 18 digits in the fractional part.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.