Results 1 to 3 of 3

Thread: formatting text

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    formatting text

    Hi,

    How can I format text properly? for example, if I use a formula to divide X / Z... and the result ends having a lot of decimal places, how can I cut/reformat those?

    If that is not possible, another fix would be: is it possible to only look for the first X numbers of a value (from an information or variable)?
    Last edited by Daewe; 07-09-2012 at 01:59 AM.

  2. #2
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by Daewe View Post
    Hi,

    How can I format text properly? for example, if I use a formula to divide X / Z... and the result ends having a lot of decimal places, how can I cut/reformat those?

    If that is not possible, another fix would be: is it possible to only look for the first X numbers of a value (from an information or variable)?
    use math.floor() to got the integer part of a number:

    Code:
    math.floor(0)
    Result: 0
    math.floor(46.43245)
    Result: 46
    Just to know, what you want do?
    Last edited by ToadZ; 07-09-2012 at 02:15 AM.

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    I sent you a PM, for some reason I cant post it, it keeps telling me my post contains URLs and it simply doesn't, dafuq

    Anyway, thanks!

Posting Permissions

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