English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Thanks!

2007-02-25 15:18:34 · 3 answers · asked by Léon 1 in Computers & Internet Programming & Design

I just switched from C++ to C# and am reading a book on it. But in the data types it lists, it doesn't mention about the long double, which C++ has. Or is it the same as double?

2007-02-25 15:32:07 · update #1

3 answers

What are you trying to do?

Double is for floating point numbers
Long is for integers.

If you have a positive integer you can use ulong which will allow you to deal with numbers about twice as large as a long.

ulong myVar;

2007-02-25 15:23:05 · answer #1 · answered by Vegan 7 · 0 0

No, there is no long double. You can choose from the following data types
long (for whole number - 32 bits)
float (floating point numbers - 32 bits)
double (double precision for floating point numbers - 64 bits)
decimal (monetary values - 128 bits 28 significant figures)

Hope this helped.

2007-02-25 20:27:05 · answer #2 · answered by Smutty 6 · 0 0

There is no such thing as a long double. Double is a double precision (64-bit) floating point number.

2007-02-25 15:26:01 · answer #3 · answered by void7x 2 · 0 0

fedest.com, questions and answers