D-A(1)
π D-A(1) π
okay so bestie, welcome to the d-a page β that's the BRL-CAD manual, and this little icon is about turning double-precision binary numbers into ASCII. yes, from robot soup to human-readable. let's go β¨
πΈ NAME πΈ
d-a β convert double-precision binary numbers to ASCII π
π¦ SYNOPSIS π¦
d-a [-n] < doubles > ascii
β¨ DESCRIPTION β¨
so here's the vibe: d-a reads a whole stream of machine-native double-precision (8-byte) binary floating point values from standard input, and writes each one out as a decimal number in ASCII text to standard output β one value per line, no cap. the values get formatted with up to nine significant digits. π
and because the input is raw binary, d-a flat-out refuses to run when standard input is a terminal. like, it will not be doing that. π the inverse conversion β ASCII text back into binary doubles β is handled by a-d(1), if you need to go the other way.
β οΈ heads up bestie: this command is deprecated and is scheduled for removal. it prints a deprecation warning on startup. you've been warned, fr fr π
π OPTIONS π
-nβ number the output. every line gets prefixed with a zero-based index showing where that value sits in the stream. cute lil position tags π
π EXAMPLES π
β Example 1. Inspect a binary double stream
a-d 1.0 2.5 -3.75 | d-a
this generates three binary doubles with a-d(1) and converts them right back into human-readable ASCII, printing one value per line. round trip slay π₯
β Example 2. Index the values in a binary file
d-a -n < values.d | head
reads doubles out of the file values.d and prints each value preceded by its position in the stream β which is genuinely so useful for locating a particular sample when you're debugging signal-processing pipelines built with dmod(1) or dconv(1). iykyk π§
π«Ά SEE ALSO π«Ά
brlcad(1), a-d(1), dconv(1), dmod(1)
π AUTHOR π
BRL-CAD Team π
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β they genuinely want to hear from you, bestie π«Ά
and that's the whole page!! this gem ships as part of BRL-CAD (the BRL-CAD source, with that 1989-2026 copyright run we mentioned up top) β mwah, go convert some doubles responsibly πππ¦
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms