# numbertodecimal

### numbertodecimal(value)

Returns a Decimal equivalent to the supplied number argument.

## Arguments

Argument | Data Type | Description
value | number | number to convert to a Decimal

## Returns

A Decimal equivalent to the number value supplied

## Description

Takes the number value supplied and constructs an equivalent Decimal, which is returned.

## Examples

Assume the following variables:

double value1 = 1234567.11, long value2 = 122345677

Example | Returns | Description
numbertodecimal(value1) | Decimal(1234567.11) | Returned value is a Decimal
numbertodecimal(value2) | Decimal(122345677) | Returned value is a Decimal

## See Also

Decimal Variables