shop.ini [MathSettings]
The block [MathSettings] of settings/shop.ini, with 5 setting(s).
Never edit settings/shop.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/shop.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/shop.ini.append.phpfor one siteaccess,extension/<extension>/settings/shop.ini.append.phpin an extension (read when the extension is active).
MathHandler
eZPHPMath - using php floating point calculations
eZBCMath - using bcmath extension.
Default: eZPHPMath.
# settings/override/shop.ini.append.php
[MathSettings]
MathHandler=eZPHPMath
*/ ?>MathScale
MathScale defines significant digits after the decimal point
Note: applyes for eZBCMath handler only.
Default: 10.
# settings/override/shop.ini.append.php
[MathSettings]
MathScale=10
*/ ?>RoundingType
RoundingType defines rounding method for autoconversions.
Possible values: none, round, ceil, floor
Default: round.
# settings/override/shop.ini.append.php
[MathSettings]
RoundingType=round
*/ ?>RoundingPrecision
RoundingPrecision defines significant digits after the decimal point
which should be kept.
values:
numeric, e.g. 0, 1, 2, ...
Default: 2.
# settings/override/shop.ini.append.php
[MathSettings]
RoundingPrecision=2
*/ ?>RoundingTarget
RoundingTarget forces rounding for specified target.
Example:
input: number = 89.468543
precision = 2
target_1 = 5
target_2 = 99
usual rounding: round( number, precision ) = 89.47
apply target_1: round( number, precision, target ) = 89.45
apply target_2: round( number, precision, target ) = 89.99
values:
numeric, e.g. 1,2,...
false
Default: false.
# settings/override/shop.ini.append.php
[MathSettings]
RoundingTarget=false
*/ ?>Related
Generated by ./console exp:help:examples from settings/shop.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.