Skip to the content
Documentation

[MathSettings]

No ratings yet

Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.

Summary

The group [MathSettings] of settings/shop.ini.

File

settings/shop.ini; override it in settings/override/shop.ini.append.php, in a siteaccess or in an extension.

Settings

Setting Default Description
MathHandler eZPHPMath eZPHPMath - using php floating point calculations eZBCMath - using bcmath extension.
MathScale 10 MathScale defines significant digits after the decimal point Note: applyes for eZBCMath handler only.
RoundingType round RoundingType defines rounding method for autoconversions. Possible values: none, round, ceil, floor
RoundingPrecision 2 RoundingPrecision defines significant digits after the decimal point which should be kept. values: numeric, e.g. 0, 1, 2, ...
RoundingTarget false 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

See also

Generated example: shop.ini [MathSettings]

Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/shop.ini.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.