Jump to content

Decimal question


zornaq
 Share

Recommended Posts

  • Administrators

Yeah, you need to force the numbers into float mode:

$x=20.0

$y=1.0-$x/100.0

Actually, I'm just in the middle of changing this anyway (literally hacking the code now :whistle: ) so it will work like you expected in your original code. Us developers easily forget that general scripters aren't always familiar with the integer/float differences.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...