Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    327
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Truncate Function (Access 2000)

    Is there a Truncate function to remove the value after a decimal point? I can find a round fuction, but no trunc or floor function.

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Truncate Function (Access 2000)

    Int and Fix both return the integer part of a number. They act the same for positive numbers, but differ in the treatment of negative numbers. Int always truncates down (towards minus infinity), while Fix always truncates towards zero.

    Int(8.6) = Fix(8.6) = 8

    Int(-8.4) = -9 but Fix(-8.4) = -8

  3. #3
    3 Star Lounger
    Join Date
    Apr 2003
    Location
    Calgary, Alberta
    Posts
    327
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Truncate Function (Access 2000)

    Cool [img]/forums/images/smilies/smile.gif[/img]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •