Interface: DecimalValue
A decimal value preserved exactly as it appeared on the wire.
NCPDP quantities, strengths, and days-supply are decimal quantities where
binary floating point would silently corrupt the value (e.g. 0.1). We never
parse them into a JS number; we keep the original source string and a
validity flag, leaving any arithmetic to the consumer who can choose a
decimal-safe representation.
Properties
isValid
readonlyisValid:boolean
True when source matches a plain decimal numeric literal.
source
readonlysource:string
The original textual value, verbatim.