Difference between revisions of "FEVAL"
From SphereWiki
(Created page with "=Description= FEval is a function that returns the given value threating the last number as a decimal and removing it, the best example is to retrieve your skill points withou...") |
(→Description) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
=Description= | =Description= | ||
| − | FEval is a function that returns the given value | + | FEval is a function that returns the given value treating the last number as a decimal and removing it, the best example is to retrieve your skill points without decimals. |
=Usage= | =Usage= | ||
| Line 6: | Line 6: | ||
[function ShowAlchemy] | [function ShowAlchemy] | ||
alchemy=99.9 | alchemy=99.9 | ||
| − | say Alchemy is: <feval <alchemy>> // This will say 'Alchemy is: 99', removing the last number (.9). | + | say Alchemy is: <feval <alchemy>> // This will say 'Alchemy is: 99', removing the last number (.9).</spherescript> |
Latest revision as of 16:53, 15 September 2022
Description
FEval is a function that returns the given value treating the last number as a decimal and removing it, the best example is to retrieve your skill points without decimals.
Usage
[function ShowAlchemy] alchemy=99.9 say Alchemy is: <feval <alchemy>> // This will say 'Alchemy is: 99', removing the last number (.9).