Aug 29, 2001 #1 yili Programmer Joined Feb 1, 2004 Messages 1 Location 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 Joined Jun 7, 2001 Messages 231 Location US The round or trunc functions will do it. TealWren Upvote 0 Downvote
Aug 30, 2001 #3 Sisto Programmer Joined May 29, 2001 Messages 25 Location 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!