POV-Ray : Newsgroups : povray.general : INQUIRY: How to Get After-Period Value : Re: INQUIRY: How to Get After-Period Value Server Time
23 Apr 2024 05:10:40 EDT (-0400)
  Re: INQUIRY: How to Get After-Period Value  
From: Alain
Date: 1 Apr 2018 15:30:03
Message: <5ac1333b@news.povray.org>
Le 18-04-01 à 01:16, Sven Littkowski a écrit :
> Hi,
> 
> I have values like 7.23 or 19.59
> 
> and want to retrieve just the value after the period sign (23).
> I am sure, POV-Ray has a function for that, but none of their names
> rings my bells.
> 
> ---
> Diese E-Mail wurde von AVG auf Viren geprüft.
> http://www.avg.com
> 

Try something like this :

#declare Fractional = In_Value - int(In_Value);


Post a reply to this message

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