Hello!
Im working in ASP and now Im began to scratch my head...=)
Say that we have an variable that is
var1 = 3
var2 = 3.65
var3 = var1 * var2 '--- Sum = 10.95
Now my Question!
How do I input this variable into MySQL in a COL whit DECIMAL (10,2)?
I only get the result 10.00 in the COL?
It seams that MySQL round every resout I get to .00 at the end.
If I make an varible hard ex.
var3 = "10.95"
that works but if I convert an numeric variable to string it doesnt?!?!?!
ex.
var4 = cstr(var3)
Pleaze help me!
// Thomas
Im working in ASP and now Im began to scratch my head...=)
Say that we have an variable that is
var1 = 3
var2 = 3.65
var3 = var1 * var2 '--- Sum = 10.95
Now my Question!
How do I input this variable into MySQL in a COL whit DECIMAL (10,2)?
I only get the result 10.00 in the COL?
It seams that MySQL round every resout I get to .00 at the end.
If I make an varible hard ex.
var3 = "10.95"
that works but if I convert an numeric variable to string it doesnt?!?!?!
ex.
var4 = cstr(var3)
Pleaze help me!
// Thomas