[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

arithmetic overflow error converting float to data type numeric

Why I get the following error message when I try to execute a function which has decimal as input parameters and float as output parameter?

arithmetic overflow error converting float to data type numeric
0
dionisio_79
Asked:
dionisio_79
1 Solution
 
Dale BurrellCommented:
You have to show us your code, and the value thats causing the problem for us to help with that.
0
 
ToddBeaulieuCommented:
A float is a 32-bit value.
Numeric is 128 bits.

Take a peek at the MSDN documentation for the data types. It may be a bit boring, but it's important to use the right types.

http://msdn.microsoft.com/en-us/library/s1ax56ch(v=VS.80).aspx
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now