toBinStrN(a,nBits)

Formats a number as a binary string of arbitrary length.


Syntax

o_toBinStrN(a,nBits)
a: scalar Int - value to be converted to binary string
b: scalar Int - number of digits to present
return: Text -  input represented by a string of 1's and 0's

Usage

Use this to show in human readable format the binary representation of an integer.

Location

menu: veeos ==> Data  ==> Conversion ==> toBinStrN

library: dataLib

Example

o_toBinStrN(38,8) returns "00100110"
o_toBinStrN(345,12) returns "000101011001"

Notes

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

toBinStr8, toBinStr16, toBinStr32, toBinStr64, toEngr


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 13 February 2024 08:50.