Problem with integer

I need to work with a 74-digit integer but Octave rounds it up for me and I don’t get the correct result of the operations.How can I fix this.

GNU Octave is intended for numerical computations and the default data type is the double-precision floating-point format. Additionally, builtin integer types up to 64 bits are supported, but not arbitrary precision data types.

Depending on the complexity of your intended calculation (maybe you can give an example), you can try to rearrange your computation to work with two double variables, try to use the symbolic package, or choose another computer algebra system software.

1 Like