Jump to content

subtraction giving wrong answers


cwoodman

Recommended Posts

Numeric variables should not contain formatting characters such as commas. Same goes for values held in a db table.

4,100 is treated as 4 (only numeric digits up to the first non-numeric digit)

Format the numbers on output

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.