DefaultBinaryCodedDecimal Class
- Last UpdatedApr 08, 2026
- 1 minute read
An implementation of the OASySDNA.RealTime.ExecutionPipelines.KrunchDataStream.ConverterFramework.IKrunchDataTypeConverter class. This class performs a binary-coded decimal (BCD) conversion of up to eight bytes of byte-ordered data retrieved from the remote.
public sealed class DefaultBinaryCodedDecimal : OASySDNA.RealTime.ExecutionPipelines.KrunchDataStream.ConverterFramework.IKrunchDataTypeConverter
public ref class DefaultBinaryCodedDecimal sealed : public OASySDNA.RealTime.ExecutionPipelines.KrunchDataStream.ConverterFramework.IKrunchDataTypeConverter
This BCD implementation does not verify that the input bytes are valid BCD hexadecimal values (0-9). The class truncates any input longer than eight bytes. Future Scenarios:
- BCD Value Verification: A future enhancement can be made to throw an instrumentation failure when an input byte contains an invalid hexadecimal value (A-F).
- Adding Decimal Places to a BCD Value: An optional configurable per-point scaling factor could be applied after the BCD conversion.
System.Object
OASySDNA.RealTime.KrunchDataTypeConverters.DefaultBinaryCodedDecimal