toBinStrN(a,nBits)

Formats a number as a binary string of arbitrary length.


Syntax

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

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

Notes

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

toBinStr8, toBinStr16, toBinStr32, toBinStr64


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 20 October 2015 20:38. © 2015.