×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    22

    Integer and decimal

    Hi!
    I would like to know if there is a function to separate the integer part from the decimal part of a number....for example:
    if I have the number 24, I make 24/10 = 2.4 How can I've the 2 and 4 separated in two variables!
    I need this because I have to map font with textures...
    Thanks!

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    22
    Resolved!
    Thanks anyway!

  3. #3
    Regular Contributor
    Join Date
    Jun 2005
    Posts
    52

    Re: Integer and decimal

    Quote Originally Posted by alabama83
    Resolved!
    Thanks anyway!
    ei, wat if its 10/24 which is 0.416666... ?how will u able to separate the 0 and .416666... ? is it possible? any idea please...thanks in advance!
    Last edited by decryptor; 2006-01-16 at 07:42.

Posting Permissions

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