Skip to Content
0
May 28, 2020 at 01:13 PM

UDF to generate Decimal number based on Exponent

64 Views

Hi All,

I have two fields: amount and exponent. Amount has integer value. I need to pass the amount field as a decimal value by placing the decimal value based on exponent value.

Input:

Amount - 12345

Exponent - 2

Output should be 123.45

Can anyone help with a UDF for this?