Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Programming Help needed (simple)

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, Registered Users 2 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