POV-Ray : Newsgroups : povray.general : Round to nearest integer : Re: Round to nearest integer Server Time
16 Apr 2024 15:02:05 EDT (-0400)
  Re: Round to nearest integer  
From: clipka
Date: 27 May 2021 09:14:53
Message: <60af9b4d$1@news.povray.org>
Am 27.05.2021 um 13:20 schrieb Mike Horvath:
> Has someone written a macro that rounds a float to the nearest integer? 

`floor(FOO + 0.5)` should do the trick.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.