- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Implicit conversion from 32-bit unsigned integer (UInt) to Decimal in C#
Implicit conversion of a 32-bit unsigned integer (UInt) to a Decimal requires you to first declare a UInt.
uint val = 342741539;
Now to convert it to decimal, just assign the value.
decimal dec; // implicit dec = val;
Example
using System; public class Demo { public static void Main() { uint val = 342741539; decimal dec; // implicit dec = val; Console.WriteLine("Decimal = "+dec); } }
Output
Decimal = 342741539
Advertisements