antoineMoPa / mucalc.com

An online open source multi-user calculator
https://www.mucalc.com
GNU Affero General Public License v3.0
8 stars 1 forks source link

Convert to hexadecimal / binary / decimal / whatever #117

Open antoineMoPa opened 8 years ago

NewLunarFire commented 8 years ago

MathJS has an issue open for this, both functions (bin, oct, hex, etc.) and litterals (0x, 0b, ...). See https://github.com/josdejong/mathjs/issues/95

It dates back from 2013, so I don't think this will be added into MathJS anytime soon. But the code is there that you could just add to the calculator.

antoineMoPa commented 8 years ago

I could add that.

There is this scary part though:

Conversion object from "BaseNumber" to "number" causes infinite loop
antoineMoPa commented 8 years ago

Thank you for finding that!