Fixed Precision: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
mNo edit summary
m <lsl> tag to <source>
 
Line 4: Line 4:
Here's a function to do fixed precision.
Here's a function to do fixed precision.


<lsl>
<source lang="lsl2">
string fixedPrecision(float input, integer precision)
string fixedPrecision(float input, integer precision)
{
{
Line 11: Line 11:
     return (string)input;
     return (string)input;
}
}
</lsl>
</source>


{{LSLC|Examples|Fixed Precision}}
{{LSLC|Examples|Fixed Precision}}

Latest revision as of 14:57, 24 January 2015