Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Programming Help needed (simple)

Options
2»

Comments

  • Closed Accounts Posts: 439 ✭✭Atreides


    Interesting, Suppose a double would have worked. Thank you.

    Found out why time^2 didn't work, apparently that function is not in std


  • Registered Users Posts: 491 ✭✭Silent Bob


    Originally posted by Skanger
    Interesting, Suppose a double would have worked. Thank you.

    Found out why time^2 didn't work, apparently that function is not in std
    A double still won't be guaranteed work. A double is just a float with higher precision and you still have the number representation problem with 0.1

    time ^ 2 does work, it just doesn't do what you expect. ^ is a bitwise exclusive or


Advertisement