toDisplayNumber method
returns the integer conversion of double value if the magnitudes are same
Implementation
String toDisplayNumber() {
return (toInt() == this ? toInt() : this).toString();
}
returns the integer conversion of double value if the magnitudes are same
String toDisplayNumber() {
return (toInt() == this ? toInt() : this).toString();
}