8 years ago
4
Topic

Bonjour,

Si j'arrive à mettre en place des calculs, je ne parviens pas à faire des arrondis au nombre entier. J'ai bien vu l'option d'arrondi mais cela me laisse un arrondi avec un chiffre ("1.1"... j'ai besoin d'arrondir à "1").

If I manage to set up calculus, I do not succeed in making roundings for whole numbers. I already worked with the option of rounding but it leaves me: " 1.1" I need to obtain " 1 ".

Merci à tous - thanks

Get a VIP membership
572 Posts
_jrmo
8 years ago
3
Level 1

hi there,

You need to use Ceil or Floor in the computation rules settings.

Cheers,

James

8 years ago
2
Level 2

Thanks James, but in the french version of seblod rules settings are Globale or Séparée - i suppose it's Ceil or Floor. But if i select global rounding is off (1.1 in place of 1) and seperated seems to switch off the function!

8 years ago
1
Level 3

Hi grp374,

James is not speaking about the rule (global or self/séparé) but about the format/precision parmater (ceil, floor, round and toFixed). You will need to set to ceil (http://php.net/manual/fr/function.ceil.php) or floor (http://php.net/manual/fr/function.floor.php).

Thanks.

572 Posts
_jrmo
8 years ago
0
Level 4

grp374,

You also have these settings within the computation rules.

James

Get a VIP membership