how to convert double to int?

  • Dear All,

    I am looking for a source code that lets me convert
    the type double to the int type.

    Thanks for your feedback.

    Best regards,

    Amine

          _____________________________________________________________________________
    Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
  • that would be:

    double sourceValue = 10.5;
    int destValue = (int)sourceValue;

    --
    John Clayton

    On 13 Nov 2007, at 12:23, amine ahmadi wrote:

    > Dear All,
    >
    > I am looking for a source code that lets me convert
    > the type double to the int type.
    >
    > Thanks for your feedback.
    >
    > Best regards,
    >
    > Amine
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today