First example:

 

      timediff = mod(minutestoround,15);

      if(15/2 < timediff) then

      roundedminutes = minutestoround + 15 - timediff;

      else

      roundedminutes = minutestoround - timediff;

 

?

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von checkmail
Gesendet: Dienstag, 8. April 2014 07:39
An: [email protected]
Betreff: [firebird-support] Round - quarter hour

 

  

Hello,

 

in my Case I would round a integer number to a full quarter number: 12 to
15, 91 to 90, 98 to 105 etc. 

 

Is there anything I can use?

 

Thanks a lot.

 

Regards

 

Olaf

 

 



Reply via email to