exp10

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the exp10 of <number>
exp10(<number>)
Summary

Returns the decimal exponential of a number.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
number

A real number, or an expression that evaluates to a number.

Example
exp10(2) -- returns 100
exp10(-3) -- returns 0.001
Values
NameTypeDescription
return

The exp10 function returns a positive number.

RelatedKeyword: integer
Function: exp
Glossary: negative, return, math operation
Description

Use the exp10 function to obtain a power of 10.

The expression exp10(number) is equal to 10^number.

If number is a positive integer, exp10(number) is a 1 followed by number zeros. If number is a negative integer, exp10(number) is a decimal point followed by number-1 zeros and a one.

If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.

Tagsmath