Decimal vs Integer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robin

    #1

    Decimal vs Integer

    I had two fields in a mySQL table:
    cost
    quantity

    Both were of the type Int. I needed decimal places for the Cost field so
    changed both to be Numeric
    cost - numeric 6,2
    quantity - numeric 11,0

    Before when they were both Int I had an asp page with did cost * quantity =
    total which worked fine.
    Now I'm getting a Type Mismatch.

    Any idea on why this is happening and how to fix it?

    Thanks!!!


Working...