KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SPICE_VALUE_FORMAT Struct Reference

A SPICE_VALUE_FORMAT holds precision and range info for formatting values.Helper class to handle Spice way of expressing values (e.g. 10.5 Meg) More...

#include <spice_value.h>

Public Member Functions

void FromString (const wxString &aString)
 
wxString ToString () const
 
void UpdateUnits (const wxString &aUnits)
 

Public Attributes

int Precision
 
wxString Range
 

Detailed Description

A SPICE_VALUE_FORMAT holds precision and range info for formatting values.Helper class to handle Spice way of expressing values (e.g. 10.5 Meg)

The Precision field indicates the number of significant digits to show in the result.

The range field gives the SI unit prefix for the range or '~' for auto-range, and the units. For instance "mV" or "~Hz".

Definition at line 42 of file spice_value.h.

Member Function Documentation

◆ FromString()

void SPICE_VALUE_FORMAT::FromString ( const wxString &  aString)

◆ ToString()

wxString SPICE_VALUE_FORMAT::ToString ( ) const

◆ UpdateUnits()

void SPICE_VALUE_FORMAT::UpdateUnits ( const wxString &  aUnits)

Member Data Documentation

◆ Precision

◆ Range


The documentation for this struct was generated from the following files: