ThePerfectComputer / FastWaveBackend

A Rust VCD parser intended to be the backend of a Waveform Viewer(built using egui) that supports dynamically loaded rust plugins.
GNU General Public License v3.0
42 stars 5 forks source link

Support for real-valued signals #22

Closed oscargus closed 1 year ago

oscargus commented 1 year ago

There is native support for real-valued signals (64-bit floating-point). This is supported when parsing variable declarations, but not value changes.

Lines start with r/R. The standard says:

A real number is dumped using a %.16g printf() format. This preserves the precision of that number by outputting all 53 bits in the mantissa of a 64-bit IEEE 754 double-precision number. Application programs can read a real number using a %g format to scanf().