| [ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 254 lines (9 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
HTMLPurifier_UnitConverter:: (8 methods):
__construct()
convert()
getSigFigs()
add()
mul()
div()
round()
scale()
Class: HTMLPurifier_UnitConverter - X-Ref
Class for converting between different unit-lengths as specified by| __construct($output_precision = 4, $internal_precision = 10, $force_no_bcmath = false) X-Ref |
| Whether or not BCMath is available |
| convert($length, $to_unit) X-Ref |
| Converts a length object of one unit into another unit. param: HTMLPurifier_Length $length param: string $to_unit |
| getSigFigs($n) X-Ref |
| Returns the number of significant figures in a string number. param: string $n Decimal number return: int number of sigfigs |
| add($s1, $s2, $scale) X-Ref |
| Adds two numbers, using arbitrary precision when available. |
| mul($s1, $s2, $scale) X-Ref |
| Multiples two numbers, using arbitrary precision when available. |
| div($s1, $s2, $scale) X-Ref |
| Divides two numbers, using arbitrary precision when available. |
| round($n, $sigfigs) X-Ref |
| Rounds a number according to the number of sigfigs it should have, using arbitrary precision when available. |
| scale($r, $scale) X-Ref |
| Scales a float to $scale digits right of decimal point, like BCMath. |
| Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |