converting decimal to integer?

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

    #1

    converting decimal to integer?

    after a division i have value 2.25, i want to convert it to upper bound
    value that is 3
    i have found some examples on msdn bu i could not succed it ,
    i want some methods like CINT in VB
    if you send code example, i would be glad

    thanks in advance


  • Miha Markic

    #2
    Re: converting decimal to integer?

    Hi Cantekin

    I think Convert.ToInt32 (Math.Ceiling(2 .25)) would do.

    --
    Miha Markic - RightHand .NET consulting & development
    miha at rthand com
    www.rhand.com

    "Cantekin Guneser" <cantekingunese r@hotmail.com> wrote in message
    news:eUFbYN6xDH A.3196@TK2MSFTN GP11.phx.gbl...[color=blue]
    > after a division i have value 2.25, i want to convert it to upper bound
    > value that is 3
    > i have found some examples on msdn bu i could not succed it ,
    > i want some methods like CINT in VB
    > if you send code example, i would be glad
    >
    > thanks in advance
    >
    >[/color]


    Comment

    Working...