Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

shop.ini [MathSettings]

The settings of [MathSettings] in shop.ini: MathHandler, MathScale, RoundingType, RoundingPrecision, RoundingTarget

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/shop/MathSettings.md

On this page

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.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/shop.ini.append.php for one siteaccess,
  • extension/<extension>/settings/shop.ini.append.php in an extension (read when the extension is active).

MathHandler

eZPHPMath - using php floating point calculations
eZBCMath - using bcmath extension.

Default: eZPHPMath.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[MathSettings]
MathScale=10
*/ ?>

RoundingType

RoundingType defines rounding method for autoconversions.
Possible values: none, round, ceil, floor

Default: round.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# settings/override/shop.ini.append.php
[MathSettings]
RoundingTarget=false
*/ ?>

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x