Skip to content

UInt64Extensions.ToBinaryString Method

Definition

Converts a ulong to its binary string representation, e.g. "0b0000000100000010000000110000010000000101000001100000011100001000".

public static string ToBinaryString(this ulong value);

View source

Parameters

Name Type Description
value UInt64

Returns

String

A 66-character string prefixed with "0b" followed by 64 binary digits.