hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Divide Behavior: Bad math?

    Scheduled Pinned Locked Moved Bug Reports
    2 Posts 2 Posters 480 Views 2 Watching
    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.
    • TutorialDoctorT Offline
      TutorialDoctor
      last edited by TutorialDoctor

      The Divide behavior gives 1/0 as 0.

      Also, multiplying values retrieved from an array (2x.5) using a Multiply behavior keeps yielding 0?

      For the multiplication issue, it was because the behaviors weren't connected so math was happening out of order.

      Jack de WildeJ 1 Reply Last reply Reply Quote 0
      • Jack de WildeJ Offline
        Jack de Wilde @TutorialDoctor
        last edited by

        @TutorialDoctor well, 1/0 is undefined, so 0 should be fine when you divide by 0 for some reason, since you should just never divide by 0.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post