Aug 29, 2001 #1 yili Programmer Feb 1, 2004 1 SG coulad any body help me?! I want to use "mod" to find a remainder from a Float, however, it only works under integer!!! HELP ME PLEASE!!!!! I am a new user!!
coulad any body help me?! I want to use "mod" to find a remainder from a Float, however, it only works under integer!!! HELP ME PLEASE!!!!! I am a new user!!
Aug 29, 2001 #2 TealWren Programmer Jun 7, 2001 231 US The round or trunc functions will do it. TealWren Upvote 0 Downvote
Aug 30, 2001 #3 Sisto Programmer May 29, 2001 25 US I normally use Trunc myself: Var aReal : Real; aInt : Integer; aInt := Trunc(aReal); If aReal is within the integer range! Upvote 0 Downvote
I normally use Trunc myself: Var aReal : Real; aInt : Integer; aInt := Trunc(aReal); If aReal is within the integer range!