Example #1
0
 internal override void SetValue(decimal value)
 {
     SetValue(MessageUtility.DecimalToAsciiArray(value, FracDigits));
     _decimal = value;
     if (FracDigits > 0)
     {
         _string.Insert(_string.Length - FracDigits, ".");
     }
 }
Example #2
0
        internal override void SetValue(String value)
        {
            decimal?val = MessageUtility.StringToDecimal(value);

            if (val == null)
            {
                throw new MessageProcessorException("Invalid string, cannot converted to numeric.");
            }
            SetValue(MessageUtility.DecimalToAsciiArray((decimal)val, FracDigits));
        }
Example #3
0
 internal override void SetValue(decimal value)
 {
     SetValue(MessageUtility.DecimalToAsciiArray(value, FracDigits));
 }