Velocity Reviews > Decimal to Integer

# Decimal to Integer

Alper Özgür
Guest
Posts: n/a

 01-24-2006
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
Guest
Posts: n/a

 01-24-2006

"Alper Özgür" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
Guest
Posts: n/a

 01-24-2006
Thank You

"Peter Rilling" <(E-Mail Removed)>, haber iletisinde şunları
yazdı:(E-Mail Removed)...
> How about Math.Ceiling?
>
> "Alper Özgür" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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?
>>

>
>

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post python@lists.fastmail.net Python 0 07-19-2010 12:32 PM valpa Python 11 03-24-2009 07:11 AM Vitaliy Python 1 05-29-2008 10:36 AM Gilbert Fine Python 8 08-01-2007 01:58 AM Ven C++ 3 08-01-2006 03:56 PM