Calculations in different bases

Jan 27, 2005 2 Replies

Does Matlab, Octave, or Fortran do calculations in different bases like a base 8 or Hexadecimal base 16? Brian White


CALC.EXE on a Windoze box. View, Scientific. (Binary, Octal, Decimal, Hexadecimal.) Change the base to do a conversion.

I don't know about Matlab or similar products, but in Fortran (and other languages), the math is all done in the system's floating point or integer formats. The resulting values can be printed in whatever bases are supported by the available I/O library routines.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required