toFinite method
Implementation
double toFinite() {
if (this == double.infinity) {
return double.maxFinite;
} else if (this == -double.infinity) {
return -double.maxFinite;
} else {
return this;
}
}
double toFinite() {
if (this == double.infinity) {
return double.maxFinite;
} else if (this == -double.infinity) {
return -double.maxFinite;
} else {
return this;
}
}