| NiceFormatterBits(Int32) Method |
Converts an Int32 into a string of bits separated into byte groups.
Namespace: Orthogonal.Common.BasicAssembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax public static string Bits(
this int value
)
Parameters
- value Int32
- The value to convert to a bit string.
Return Value
StringA string representing 32 bits.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int32. 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).
Example int i = -123456789;
Console.WriteLine(i.Bits());
See Also