# Class NumberUtils

Namespace
  adas_core.Domain.Utils

Assembly
  adas-core.Domain.dll

Provides a collection of static utility methods for performing common numeric operations.

    public static class NumberUtils

Inheritance
  object
  NumberUtils

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Methods

### IsNumber(object)

Determines whether the specified object is an instance of any built-in numeric type, including signed and unsigned integral types as well as floating-point and decimal types.

    public static bool IsNumber(this object value)

#### Parameters

`value` object

  The object to evaluate.

#### Returns

bool

  `true` if `value` is one of the supported numeric types (sbyte, byte, short, ushort, int, uint, long, ulong, float, double, or decimal); otherwise, `false`.

### ToDouble(object)

Converts the specified object to a double-precision floating-point number using the underlying ToDouble(object) conversion.

    public static double ToDouble(this object value)

#### Parameters

`value` object

  The object to convert to a double.

#### Returns

double

  A double that represents the converted value.