256
edits
(→lc) |
|||
Line 220: | Line 220: | ||
precision(5.24, 1); // Returns "5.2" | precision(5.24, 1); // Returns "5.2" | ||
==== | ==== truncate ==== | ||
''string'' '''truncate'''(''string'' value, ''number'' length[, ''string'' appendage]); | ''string'' '''truncate'''(''string'' value, ''number'' length[, ''string'' appendage]); | ||
Returns the string truncated to specified length. If third argument is specified it will be appended to the returned string if it's truncated. | Returns the string truncated to specified length. If third argument is specified it will be appended to the returned string if it's truncated. |
edits