Jump to content

Error: Out of range value adjusted for column 'delhours' at row 1


dmccabe

Recommended Posts

I have 4 fields in a database which are set as type "DECIMAL(4,2)"

 

These are to hold montery values eg: 99.00 and distance in miles eg: 59.5

 

This works until I put in a 3 or 4 digit number before the decimal place eg: 1000.26

 

At which point I get this error:

 

"Error: Out of range value adjusted for column 'delhours' at row 1"

 

Anyone give me any clues why?

 

yes I can because the decimal number 1000.26 is actually a "DECIMAL(6,2)"

 

the decimal format requires two arguments, the first is the maximum number of total digits allowed and the second is the maximum number of digits after the decimal point

 

hope that helps

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.