Convert integer to decimal ? - DOTNET

This is a discussion on Convert integer to decimal ? - DOTNET ; Hello everyone, Please can someone help me, i want to convert int number to decimal but as this way: 00000005465 to 54.65 Note: i don't want 5465.00 so is there any code can do this or should i have to ...

+ Reply to Thread
Results 1 to 2 of 2

Convert integer to decimal ?

  1. Default Convert integer to decimal ?

    Hello everyone,

    Please can someone help me, i want to convert int number to decimal
    but as this way:
    00000005465 to 54.65
    Note: i don't want 5465.00

    so is there any code can do this or should i have to write special code.

    Thanks for your help.

  2. Default Re: Convert integer to decimal ?

    On Nov 15, 1:17 pm, tvin <t...@discussions.microsoft.com> wrote:
    > Hello everyone,
    >
    > Please can someone help me, i want to convert int number to decimal
    > but as this way:
    > 00000005465 to 54.65
    > Note: i don't want 5465.00
    >
    > so is there any code can do this or should i have to write special code.


    Well, what are the specific requirements here? How should it know how
    many decimal places to use? Is it always 2 decimal places? If so, just
    use:

    int i = 5465;
    decimal d = ((decimal)i)/100;

    Jon

+ Reply to Thread

Similar Threads

  1. convert a string into a decimal
    By Application Development in forum RUBY
    Replies: 6
    Last Post: 11-06-2007, 10:55 AM
  2. convert integer to string
    By Application Development in forum Java
    Replies: 5
    Last Post: 11-02-2007, 10:44 PM
  3. convert Decimal to Hexa
    By Application Development in forum ASM x86 ASM 370
    Replies: 5
    Last Post: 09-23-2007, 02:14 AM
  4. how to convert integer to signal value
    By Application Development in forum vhdl
    Replies: 2
    Last Post: 09-13-2007, 09:46 AM
  5. convert decimal -> hexadecimal
    By Application Development in forum Idl-pvwave
    Replies: 2
    Last Post: 12-21-2006, 12:44 PM