Bunoon: TESS | Manual | Convert

This area contains a set of functions that can be used for all different types of conversions. Some of the functions available are just handy ones that make certain web references easy to change, while others are handy when performing complex mathematical Javascript solutions.

Takes a number and converts the value into fahrenheit.

The main arguments for this function are as follows:

  • nCelsius [Number] - The number to convert.

The return value for this function is as follows:

  • [Object] - The converted number (or null if any error has occurred).

Below is an example of how to use this function:

var nDetails = $T.Convert.CtoF(32);

Takes a number and converts the value into celsius.

The main arguments for this function are as follows:

  • nFahrenheit [Number] - The number to convert.

The return value for this function is as follows:

  • [Object] - The converted number (or null if any error has occurred).

Below is an example of how to use this function:

var nDetails = $T.Convert.FtoC(89.6);

Takes a number and converts the value into Kilometres Per Hour.

The main arguments for this function are as follows:

  • nMPH [Number] - The number to convert.

The return value for this function is as follows:

  • [Object] - The converted number (or null if any error has occurred).

Below is an example of how to use this function:

var nDetails = $T.Convert.MPHtoKPH(60);

Takes a number and converts the value into Miles Per Hour.

The main arguments for this function are as follows:

  • nKPH [Number] - The number to convert.

The return value for this function is as follows:

  • [Object] - The converted number (or null if any error has occurred).

Below is an example of how to use this function:

var nDetails = $T.Convert.KPHtoMPH(96.56);

Takes a number and rounds it to a specified number of decimal places (if decimals are available).

The main arguments for this function are as follows:

  • nValue [Number] - The number to round.
  • nDecimalPlaces [Number] - The number of decimal places to use.

The return value for this function is as follows:

  • [Object] - The rounded number (or null if any error has occurred).

Below is an example of how to use this function:

var nDetails = $T.Convert.RoundDecimals(89.666, 2);

Takes a number and rounds it to a specified number of decimal places (if decimals are available).

The main arguments for this function are as follows:

  • oValue [Object] - The value to convert.
  • nDecimalPlaces [Boolean] - States if the value should be converted to a float (defaults to false).

The return value for this function is as follows:

  • [Object] - The converted value (or null if any error has occurred).

Below is an example of how to use this function:

var nValue = $T.Convert.ToNumber('1234');