Skip to content

function_toHuman

Wesley de Groot edited this page Jan 2, 2016 · 1 revision

tvOS.toHuman(valtoHuman)

String to human readable amount

translates:

0.2 = 1/5

0.4 = 2/5

0.6 = 3/5

0.8 = 4/5

1.0 = 5/5

1.0 can also be 1

Parameters

Type @var Description Required
string valtoHuman String to human readable e.x. 4/5 Required

Example

tvOS.toHuman('0.8')



Back to function list