Changeset 874 for trunk/Packages/Common/PrefixMultiplier.php
- Timestamp:
- Apr 6, 2020, 11:56:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/PrefixMultiplier.php
r873 r874 84 84 } 85 85 } 86 return ($Value);86 return $Value; 87 87 } 88 88 … … 94 94 $Value = abs($Value); 95 95 if (($Unit == '') and ($PrefixType != 'Time')) 96 return ($this->TruncateDigits($Value, $Digits));96 return $this->TruncateDigits($Value, $Digits); 97 97 98 98 $I = $PrefixMultipliers[$PrefixType]['BaseIndex']; 99 if ($Value == 0) return ($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);99 if ($Value == 0) return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit; 100 100 101 101 if ($Value > 1) … … 114 114 $Value = $this->TruncateDigits($Value, $Digits); 115 115 if ($Negative) $Value = -$Value; 116 return ($Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit);116 return $Value.' '.$PrefixMultipliers[$PrefixType]['Definition'][$I][0].$Unit; 117 117 } 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.