Back to functions

Expression.text


text

Gets the list of reserved names. This is a list of names already in use by nerdamer excluding variable names. This is not a static list.


Usage: nerdamer.text(x)


Parameters

String asArray Pass in the string 'decimals' to always get back numers as decimals. Pass in the string 'fractions' to always get back number as fractions. Defaults to decimals.

EXAMPLES:
var x = nerdamer('1/12+1/2*cos(x)-0.5');
console.log(x.text('decimals'));
console.log(x.text('fractions'));
OUTPUT:
Back to functions