OnWorks favicon

ascii2binary - Online in the Cloud

Run ascii2binary in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ascii2binary that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



ascii2binary - Convert ASCII numbers to binary


ascii2binary [flags]


ascii2binary reads input consisting of a sequence of ASCII textual representations of
numbers, separated by whitespace, and produces as output the binary equivalents. The type
(unsigned integer, signed integer, or floating point number) and size of the binary output
is selected by means of command line flags. The default is unsigned character. Input is
checked both for format errors and to ensure that the number requested can be represented
in a number of the requested binary type and size.


The input formats supported are exactly those supported by strtod(3) for floating point
numbers, by strtoll(3) for signed integers, and by strtoull(3) for unsigned integers,
except that, unlike strtod(3) floating point numbers may have thousands separators. This
means that by default integers may be decimal, octal, or hexadecimal, determined by the
usual conventions. The command line flag -b may be used to specify another base for
integer conversions.


Long options may not be available on some systems.

-b,--base <base>
set base in range [2,36] for integer conversions. The base may be either an integer





print help message

-L,locale <locale>
Set the LC_NUMERIC facet of the locale to <locale>.

print sizes of types on current machine and related information

-t,--type <type>
set type and size of output

The following are the possible output types. Note that some types may not be
available on some machines.

d double

f float

sc signed char

ss signed short

si signed int

sl signed long

sq signed long long

uc unsigned char

us unsigned short

ui unsigned int

ul unsigned long

uq unsigned long long

identify version

print a summary of the exit status codes.


The following values are returned on exit:

The input was successfully converted.

1 INFO The user requested information such as the version number or usage synopsis and
this has been provided.

An error resulted from a failure of the operating system such as an i/o error or
inability to allocate storage.

The program was called with invalid or inconsistent command line flags.

This means that the input may be well-formed but cannot be represented as the
required type. For example, if the input is the string 983 and ascii2binary is
requested to convert this into an unsigned byte, ascii2binary will exit with a
RANGE ERROR because 983 exceeds the maximum value representable in an unsigned
byte, which is 255.

This means that the input was ill-formed, that is that it could not be interpreted
as a number of the required type. For example, if the input is 0x2A and a decimal
value is called for, an INPUT ERROR will be returned since 0x2A is not a valid
representation of a decimal integer.

Use ascii2binary online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands