Semmiiee schreef:Neen, ik wil dat je juist 0,0 kunt hebben, dus bv 1,3, en geen 2,25 o.i.dDie rond af naar het dichtste getalEerdere citaten tonen
Raoulfloks schreef:Je kan de functie round() gebruiken.[COLOR= #0000BB]<?php $var[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1.6[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// => 2[/COLOR] ?>
heb je ook zoiets?

Ik snap het niet echt, je wilt van 2.25 naar 1.3 gaan? Waarom?

