DoubleOutOfRangeException

Summary

Represents a double out of range exception.

Description

Represents a double out of range exception.

Examples

Example of how this exception might be encountered
1
2
3
4
5
6
7
8
9
10
11
import System;
import System.Exceptions;
 
try {
    // Range for `double` is -1.79769313486232e308 to 1.79769313486232e308
    // 1e10000 is scientific notation for 1 x 10^10000
    double x = Double.fromStringOrThrow("1e10000");
}
catch(DoubleOutOfRangeException e) {
    Console.error(e);
}

Methods

Share

HTML | BBCode | Direct Link