How to determine the modulus of a Float in Ada 95
Posted
by mat_geek
on Stack Overflow
See other posts from Stack Overflow
or by mat_geek
Published on 2010-03-19T01:48:14Z
Indexed on
2010/03/19
1:51 UTC
Read the original article
Hit count: 465
I need to determine the amount left of a time cycle. To do that in C I would use fmod. But in ada I can find no reference to a similar function. It needs to be accurate and it needs to return a float for precision.
So how do I determine the modulus of a Float in Ada 95?
elapsed := time_taken mod 10.348;
left := 10.348 - elapsed;
delay Duration(left);
© Stack Overflow or respective owner