What is the correct way of representing double in c#? -


I am using the first thing and my new company is using it in another way.

  Double X = 1.99; Double y = 9.02 d;   

Which is correct and why? And if both are right, how is it used in different circumstances?

From

From:

By default, on the right side of the assignment operator A real numeric verb is considered as a verb double though, if you want an integer number to be considered as repeating, use suffix D or D, for example:

double X = 3D;

double x = 1.99; and double y = 9.02D; There is no difference between

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -