Forum — Daily Challenge
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Absolute Value

    Questions
    3
    3
    19
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • readingalldayR
      readingallday M0
      last edited by

      I was doing homework and I got a problem with absolute value
      Ex. | 7 - 6 |
      so since it would be | 1 | does this make the 1 inside negative?
      thanks

      mathnerd_101M I 2 Replies Last reply Reply Quote 0
      • mathnerd_101M
        mathnerd_101 M0 M3 @readingallday
        last edited by

        @readingallday Not necessarily. If you got |1|, the 1 inside would still be positive! The thing with absolute value is that if you got |-1|, then the value would become positive.

        TL;DR, absolute value is always positive. Hopefully, I interpreted your question right. If not, please let me know.

        If you see the text messages between two programmers, here are some common acronyms to know:
        imo: iteration may overload
        brb: bad recursion brb
        rofl: right-oriented frame layout

        1 Reply Last reply Reply Quote 0
        • I
          invigoratedmongoose M2★ M3★ M5 @readingallday
          last edited by

          @readingallday Absolute value is a number's distance from 0. This is why positive numbers stay positive, and negative numbers become positive in these problems, as we are just counting how many units a number is from zero. Ex: (-7 is 7 units away from 0 & 7 is also just 7 units away from 0 but in opposite directions).

          1 Reply Last reply Reply Quote 0

          • 1 / 1
          • First post
            Last post
          Daily Challenge | Terms | COPPA