Results 1 to 9 of 9
  1. #1
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed

    [HELP] Math.Abs(Textbox1.text) issue

    Well this seems weird but for my next version (v1.4) for my program I plan to add an absolute value equation, all i know s that abs( on a graphic calculator is absolute value, so... I get an error when i get to this equation:

    Quote Originally Posted by Mnpeep's Multitool v1.4 (Under Development)
    If button8.enabled = false and button7.enabled = true then label5.text = math.abs(textbox1.text)
    How do I fix this problem?

  2. #2
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Try
    Code:
    math.abs(int32.parse(Textbox1.text))
    "I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov

  3. #3
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    isn't absolute value the same number except if its a negative you take the negative out..? if so..you can just do this...
    Code:
    Textbox1.Text = Textbox1.Text.Replace("-","")

  4. #4
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Yeah the absolute value of any number is that number.
    "I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov

  5. #5
    bedshet's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    58
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    oo is this like schoool math couse if it is i wana join im asian

  6. #6
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by bedshet View Post
    oo is this like schoool math couse if it is i wana join im asian
    Lol?

    You need some math in coding
    -Rest in peace leechers-

    Your PM box is 100% full.

  7. #7
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Well he may be doing the abs value thing because you can do multiple things inside of and outside of the abs value function that could change it to a negative.
    "I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov

  8. #8
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    i just wanted some help, and yes i want to know more complex things in VB so that is why i am taking the ABS equation instead of the other one. Thank you for your help, i expect my relese to come out on friday!!! ( Im gonna code alot on thursday. )

  9. #9
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    I gave you code btw...

Similar Threads

  1. Help how to add text to a mod.
    By cranow12 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 09-25-2010, 01:56 AM
  2. [HELP!] MW2 text issue!
    By asdf12345678 in forum Suggestions, Requests & General Help
    Replies: 1
    Last Post: 09-12-2010, 06:21 AM
  3. [Help] What's this text like dll is corrupt :(
    By ovenran in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 09-09-2010, 01:45 PM
  4. Need help saving info in text boxes please
    By bayley60 in forum Visual Basic Programming
    Replies: 10
    Last Post: 07-09-2010, 10:02 AM
  5. Help math problem i need a quick solver!!!
    By Dested in forum General
    Replies: 44
    Last Post: 05-21-2009, 09:58 PM

Tags for this Thread