what's the meaning?

  • Thread starter Thread starter vinnie
  • Start date Start date
V

vinnie

I'm writing my first project in C#, and i have before a line that i
don;t really understand, while the notes i'm using do give any useful
info.

If someone would help, i would really appreciate.

This little project just converts the US value in Yen.

The line is this:

decimal amount = Decimal.Parse(US.Value)

What i don't understand is the difference between the "decimal" and
"Decimal", and the Parse() method used.

Thanks a lot
 
vinnie said:
I'm writing my first project in C#, and i have before a line that i
don;t really understand, while the notes i'm using do give any useful
info.

If someone would help, i would really appreciate.

This little project just converts the US value in Yen.

The line is this:

decimal amount = Decimal.Parse(US.Value)

What i don't understand is the difference between the "decimal" and
"Decimal"

decimal and Decimal are the same - C# just has shorthand versions for a
few types. In a similar way, int means the same as System.Int32.
and the Parse() method used.

Have a look at the documentation for Decimal.Parse and you'll see what
it does.
 
decimal and Decimal are the same - C# just has shorthand versions for a
few types. In a similar way, int means the same as System.Int32.


Have a look at the documentation for Decimal.Parse and you'll see what
it does.

Thanks, very helpful
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top