Results 1 to 6 of 6

Thread: some functions help

  1. #1
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default some functions help

    what does trunc fixd Round do? how do i use them? and for what?

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Round converts a decimal to integer(Whole)
    About the other ones not sure... haven't use them for a while...
    ~Hermen

  3. #3
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thx hermen, appreciate ur help but do u think theyre in the same mould?

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Okay, Trunc rounds down and converts to integer, FixD subtracts 360 from an angle if it is over 360 (Fix Degrees). Round rounds a number, just like normal rounding.

    For more info check the SCAR Manual.

    PHP Code:
     function Round(eExtended): LongInt;
    Rounds and converts floating point number to integer.

    function 
    Trunc(eExtended): LongInt;
    Rounds down and converts to integer.

    function 
    FixD(DegreesExtended): Extended;
    Returns Degrees in 0-360 form
    Normal mathematical uses for each. Trunc is used in DoEmote, FixD is used in RadialWalk


    EDIT: 25% ninj'd.

  5. #5
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    aah thanks for that, looks like i wont be needing them thanks
    Edit:> SORTcircle wise i didn't get it cud u please explain?

  6. #6
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by hackncrack1 View Post
    aah thanks for that, looks like i wont be needing them thanks
    Edit:> SORTcircle wise i didn't get it cud u please explain?
    Did do on MSN

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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