 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- 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 Octal string in C#
To reprsent Int64 as a Octal string in C#, use the ToString() method and set the base as the ToString() method’s second parameter i.e. 8 for Octal.
Int64 represents a 64-bit signed integer.
Firstly, set an Int64 variable.
long val = 986766;
Now, convert it to octal string by including 8 as the second parameter.
Convert.ToString(val, 8)
Example
using System; class Demo {    static void Main() {       long val = 986766;       Console.WriteLine("Long: "+val);       Console.Write("Octal String: "+Convert.ToString(val, 8));    } }  Output
Long: 986766 Octal String: 3607216
Advertisements
 