Decimal to Integer

Discussion in 'ASP .Net' started by Alper Özgür, Jan 24, 2006.

  1. Hi;
    I want to convert a decimal to integer. but the problem is i wanna do
    convert the value to upper integer value if there is decimal value... For
    example if value is 12,01 this must convert to 13; if it's 12,0 then convert
    to 12.
    Is there any way except Fix method?
    Alper Özgür, Jan 24, 2006
    #1
    1. Advertising

  2. How about Math.Ceiling?

    "Alper Özgür" <> wrote in message
    news:...
    > Hi;
    > I want to convert a decimal to integer. but the problem is i wanna do
    > convert the value to upper integer value if there is decimal value... For
    > example if value is 12,01 this must convert to 13; if it's 12,0 then
    > convert to 12.
    > Is there any way except Fix method?
    >
    Peter Rilling, Jan 24, 2006
    #2
    1. Advertising

  3. Thank You :)

    "Peter Rilling" <>, haber iletisinde þunlarý
    yazdý:...
    > How about Math.Ceiling?
    >
    > "Alper Özgür" <> wrote in message
    > news:...
    >> Hi;
    >> I want to convert a decimal to integer. but the problem is i wanna do
    >> convert the value to upper integer value if there is decimal value... For
    >> example if value is 12,01 this must convert to 13; if it's 12,0 then
    >> convert to 12.
    >> Is there any way except Fix method?
    >>

    >
    >
    Alper Özgür, Jan 24, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ven
    Replies:
    3
    Views:
    1,296
  2. Gilbert Fine
    Replies:
    8
    Views:
    880
    Zentrader
    Aug 1, 2007
  3. Vitaliy
    Replies:
    1
    Views:
    455
    Peter Otten
    May 29, 2008
  4. valpa
    Replies:
    11
    Views:
    1,480
    Steven D'Aprano
    Mar 24, 2009
  5. Replies:
    0
    Views:
    266
Loading...

Share This Page