Decimal Values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darshanp
    New Member
    • Sep 2006
    • 1

    Decimal Values

    Hi
    I am trying to perform calculations on a var that I declared as integer with decimal place set to 2. however when i perform the calculations with a fraction e.g. 0.5 added to this variable. It just drops the fraction. I have attempted to use all the different variable types but still. The Var is from a table
    Thanks
  • PEB
    Recognized Expert Top Contributor
    • Aug 2006
    • 1418

    #2
    Originally posted by darshanp
    Hi
    I am trying to perform calculations on a var that I declared as integer with decimal place set to 2. however when i perform the calculations with a fraction e.g. 0.5 added to this variable. It just drops the fraction. I have attempted to use all the different variable types but still. The Var is from a table
    Thanks
    Hi darshanp,

    So if you use integer, this type in his name assumes that there isn't decimals :)
    int() is function that remove any decimals!

    So please change your type to something like Double or Decimal....

    Have a nice day!

    :)

    Comment

    Working...