D-A(1)

πŸ“¦ version 7.44.0, in nixpkgs unstable

πŸ’– 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 πŸ‘‘


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