A struct representing a NAV frequency used in FlightSim. This can convert between strings, decimal and FSUIPC's BCD format for offsets.
More...
|
ushort | ToBCD () |
| Gets the NAV Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in some offsets.
|
|
decimal | ToDecimal () |
| Gets the NAV Frequency as a decimal type.
|
|
override string | ToString () |
| Gets the NAV Frequency as a string. NOTE this does not take into account the user's culture settings. It always formats with a . for the decimal point.
|
|
| FsFrequencyNAV (ushort freqBCD) |
| Creates a new NAV Frequency from the Binary-Coded Decimal (BCD) format used by FSUIPC.
|
|
| FsFrequencyNAV (string freqString) |
| Creates a new NAV Frequency from a string. NOTE The string must be in Invariant Culture. That is, the decimal place must be a . not a ,.
|
|
| FsFrequencyNAV (decimal freqDecimal) |
| Creates a new NAV Frequency from a decimal value.
|
|
A struct representing a NAV frequency used in FlightSim. This can convert between strings, decimal and FSUIPC's BCD format for offsets.
◆ FsFrequencyNAV() [1/3]
Creates a new NAV Frequency from the Binary-Coded Decimal (BCD) format used by FSUIPC.
- Parameters
-
freqBCD | The NAV Frequency value in BCD format |
◆ FsFrequencyNAV() [2/3]
Creates a new NAV Frequency from a string. NOTE The string must be in Invariant Culture. That is, the decimal place must be a . not a ,.
- Parameters
-
freqString | The NAV Frequency as a string |
◆ FsFrequencyNAV() [3/3]
Creates a new NAV Frequency from a decimal value.
- Parameters
-
freqDecimal | The NAV Frequency as a decimal |
◆ ToBCD()
Gets the NAV Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in some offsets.
- Returns
- A ushort in BCD format that can written to FSUIPC offsets
◆ ToDecimal()
Gets the NAV Frequency as a decimal type.
- Returns
- The NAV Frequency as a decimal
◆ ToString()
override string ToString |
( |
| ) |
|
|
inline |
Gets the NAV Frequency as a string. NOTE this does not take into account the user's culture settings. It always formats with a . for the decimal point.
- Returns
- A string representing the NAV Frequency.