utils/utils_conversion library

Classes

Node

Constants

baseConversion → const int
linearConversion → const int
reciprocalConversion → const int

Functions

baseToDec(String toBeConverted, int base) String
decToBase(String stringDec, int base) String
getBaseRegExp(int base) RegExp
mantissaCorrection(double value, int significantFigures, bool removeTrailingZeros) String
Given a double value it returns its rapresentation as a string with few tweaks: significantFigures is the number of significant figures to keep, removeTrailingZeros say if non important zeros should be removed, e.g. 1.000000 --> 1