btoa
Manual Reference Pages - BTOA (1)
btoa - binary to ascii conversion.
CONTENTS
Syntax
Description
Options
Bugs
Copyright
SYNTAX
btoa [options] [file]
DESCRIPTION
Read numbers of the given type from the input stream until eof.Print each number on the stdout (one number per line) to the given precision.
OPTIONS
1. type
The input data type, which may be one of the list: char, short, int, float,double, ascii.
Silent options for short, int and float are retained for compatibilitywith earlier versions. If used, these override the type option.
2. precision
The number of decimal places for ascii output. Setting precision=0 gives(truncated) integer output.
BUGS
When converting binary doubles or floats to ascii, and then back to binary,there will be some difference between the binary files because the asciioutput is printed with limited precision.
SEE ALSO
options atob ftos stof
COPYRIGHT
Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
Permission to use, copy, modify, and distribute this software without feeis hereby granted for research purposes, provided that this copyrightnotice appears in all copies and in all supporting documentation, and thatthe software is not redistributed for any fee (except for a nominalshipping charge). Anyone wanting to incorporate all or part of thissoftware in a commercial product must obtain a license from the MedicalResearch Council.
The MRC makes no representations about the suitability of thissoftware for any purpose. It is provided "as is" without express orimplied warranty.
THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLTHE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGESOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THISSOFTWARE.
| SunOS 5.6 | BTOA (1) | 7 September 1993 |