- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Represent Int64 as a String in C#
Int64 represents a 64-bit signed integer. To represent it as a string, use the ToString() method.
Firstly, declare and initialize an Int64 variable.
long val = 8766776;
Now, represent it as a string.
val.ToString()
Let us see the complete example.
Example
using System; class Demo { static void Main() { long val = 8766776; Console.Write("Long converted to string = "+val.ToString()); } }
Output
Long converted to string = 8766776
- Related Articles
- Represent Int64 as a Octal string in C#
- Represent Int64 as a Hexadecimal String in C#
- Represent Int64 as a Binary string in C#
- Represent Int32 as a String in C#
- Represent Int32 as a Hexadecimal String in C#
- Represent Int32 as a Octal String in C#
- Represent Int32 as a Binary String in C#
- Int64.ToString() Method in C#
- Convert Decimal to Int64 (long) in C#
- Int64.CompareTo Method in C# with Examples
- Int64.Equals Method in C# with Examples
- Int64.GetHashCode Method in C# with Examples
- Int64.GetTypeCode Method in C# with Examples
- Int64.MaxValue Field in C# with Examples
- Int64.MinValue Field in C# with Examples

Advertisements