arithmetic overflow error converting float to data type numeric

Posted on 2011-10-09
Last Modified: 2012-05-12
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
Question by:dionisio_79
    LVL 21

    Expert Comment

    by:Dale Burrell
    You have to show us your code, and the value thats causing the problem for us to help with that.
    LVL 16

    Accepted Solution

    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.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now