 | NiceFormatterBits(Int64) Method |
Converts an Int64 into a string of bits separated into byte groups.
Namespace: Orthogonal.Common.BasicAssembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-29 08:29 GMT+10
Syntaxpublic static string Bits(
this long value
)
Parameters
- value Int64
- The value to convert to a bit string.
Return Value
StringA string representing 64 bits.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int64. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Examplelong n = -123456789012345;
Console.WriteLine(n.Bits());
See Also