Home
last modified time | relevance | path

Searched refs:ToDecimal (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Extensions/tests/System/
H A DConvert.ToDecimal.cs16 Verify(Convert.ToDecimal, testValues, expectedValues); in FromBoolean()
24 Verify(Convert.ToDecimal, testValues, expectedValues); in FromByte()
32 Verify(Convert.ToDecimal, testValues, expectedValues); in FromDecimal()
40 Verify(Convert.ToDecimal, testValues, expectedValues); in FromDouble()
51 Verify(Convert.ToDecimal, testValues, expectedValues); in FromInt16()
59 Verify(Convert.ToDecimal, testValues, expectedValues); in FromInt32()
75 VerifyFromObject(Convert.ToDecimal, Convert.ToDecimal, testValues, expectedValues); in FromObject()
78 … VerifyFromObjectThrows<InvalidCastException>(Convert.ToDecimal, Convert.ToDecimal, invalidValues); in FromObject()
105 VerifyFromString(Convert.ToDecimal, Convert.ToDecimal, testValues, expectedValues); in FromString()
108 … VerifyFromStringThrows<OverflowException>(Convert.ToDecimal, Convert.ToDecimal, overflowValues); in FromString()
[all …]
/dports/lang/mono-basic/mono-basic-4.7/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/
H A DDecimalType.vb71 Return (-1) * Convert.ToDecimal(DirectCast(Value, Boolean))
73 Return Convert.ToDecimal(DirectCast(Value, Byte))
75 Return Convert.ToDecimal(DirectCast(Value, Double))
79 Return Convert.ToDecimal(DirectCast(Value, Integer))
81 Return Convert.ToDecimal(DirectCast(Value, Short))
83 Return Convert.ToDecimal(DirectCast(Value, Long))
85 Return Convert.ToDecimal(DirectCast(Value, Single))
89 Return Convert.ToDecimal(DirectCast(Value, SByte))
91 Return Convert.ToDecimal(DirectCast(Value, UShort))
93 Return Convert.ToDecimal(DirectCast(Value, UInteger))
[all …]
H A DFlowControl.vb80 Counter = Convert.ToDecimal(DecimalType.FromObject(Start))
88 lfo.Start = Convert.ToDecimal(DecimalType.FromObject(Start))
89 lfo.Limit = Convert.ToDecimal(DecimalType.FromObject(Limit))
90 lfo.StepValue = Convert.ToDecimal(DecimalType.FromObject(StepValue))
97 Return ForNextCheckDec(Convert.ToDecimal(CounterResult), lfo.Limit, lfo.StepValue)
H A DObjectType.vb199 dec1 = Convert.ToDecimal(o1)
200 dec2 = Convert.ToDecimal(o2)
770 dec1 = Convert.ToDecimal(o1)
771 dec2 = Convert.ToDecimal(o2)
899 dec1 = Convert.ToDecimal(o1)
900 dec2 = Convert.ToDecimal(o2)
1002 dec1 = Convert.ToDecimal(o1)
1003 dec2 = Convert.ToDecimal(o2)
1112 dec1 = Convert.ToDecimal(o1)
1113 dec2 = Convert.ToDecimal(o2)
[all …]
H A DConversions.vb112 Public Shared Function ToDecimal(ByVal Value As Boolean) As Decimal
115 Public Shared Function ToDecimal(ByVal Value As Object) As Decimal
118 Public Shared Function ToDecimal(ByVal Value As String) As Decimal
/dports/lang/mono-basic/mono-basic-4.7/vbnc/vbnc/tests/NUnitTests/
H A DImplicitConversions.vb34 <Test()> Public Sub ToDecimal()
71 <Test()> Public Sub ToDecimal()
104 <Test()> Public Sub ToDecimal()
132 <Test()> Public Sub ToDecimal()
186 <Test()> Public Sub ToDecimal()
233 <Test()> Public Sub ToDecimal()
271 <Test()> Public Sub ToDecimal()
299 <Test()> Public Sub ToDecimal()
354 <Test()> Public Sub ToDecimal()
H A DExplicitConversions.vb34 <Test()> Public Sub ToDecimal()
71 <Test()> Public Sub ToDecimal()
104 <Test()> Public Sub ToDecimal()
132 <Test()> Public Sub ToDecimal()
186 <Test()> Public Sub ToDecimal()
233 <Test()> Public Sub ToDecimal()
271 <Test()> Public Sub ToDecimal()
299 <Test()> Public Sub ToDecimal()
354 <Test()> Public Sub ToDecimal()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/SQLTypes/
H A DSQLMoney.cs153 return ToDecimal();
162 public Decimal ToDecimal() { in ToDecimal() method
216 return Decimal.ToDouble(ToDecimal()); in ToDouble()
252 Decimal money = ToDecimal(); in ToString()
334 new SqlMoney(Decimal.Multiply(x.ToDecimal(), y.ToDecimal())); in operator *()
342 new SqlMoney(Decimal.Divide(x.ToDecimal(), y.ToDecimal())); in operator /()
637 SqlMoney money = new SqlMoney(XmlConvert.ToDecimal(reader.ReadElementString())); in IXmlSerializable.ReadXml()
651 writer.WriteString( XmlConvert.ToString(ToDecimal()) ); in IXmlSerializable.WriteXml()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Data.Common/src/System/Data/SQLTypes/
H A DSQLMoney.cs124 return ToDecimal();
130 public decimal ToDecimal() in ToDecimal() method
182 return decimal.ToDouble(ToDecimal()); in ToDouble()
215 decimal money = ToDecimal(); in ToString()
294 new SqlMoney(decimal.Multiply(x.ToDecimal(), y.ToDecimal())); in operator *()
300 new SqlMoney(decimal.Divide(x.ToDecimal(), y.ToDecimal())); in operator /()
578 SqlMoney money = new SqlMoney(XmlConvert.ToDecimal(reader.ReadElementString())); in IXmlSerializable.ReadXml()
592 writer.WriteString(XmlConvert.ToString(ToDecimal())); in IXmlSerializable.WriteXml()
/dports/lang/mono/mono-5.10.1.57/mcs/nunit24/NUnitFramework/framework/Constraints/
H A DNumerics.cs89 …return AreEqual( Convert.ToDecimal(expected), Convert.ToDecimal(actual), Convert.ToDecimal(toleran… in AreEqual()
194 return Convert.ToDecimal(expected).CompareTo(Convert.ToDecimal(actual)); in Compare()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Xml/System/Xml/Schema/
H A DXmlValueConverter.cs191 public abstract decimal ToDecimal(bool value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
192 public abstract decimal ToDecimal(int value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
193 public abstract decimal ToDecimal(long value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
194 public abstract decimal ToDecimal(decimal value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
195 public abstract decimal ToDecimal(float value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
196 public abstract decimal ToDecimal(double value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
197 public abstract decimal ToDecimal(DateTime value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
199 public abstract decimal ToDecimal(string value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
200 public abstract decimal ToDecimal(object value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
912 public override decimal ToDecimal(int value) { in ToDecimal() method in System.Xml.Schema.XmlNumeric10Converter
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/
H A Dconvert.cs245 return v.ToDecimal(provider); in ChangeType()
302 return value.ToDecimal(provider); in DefaultToType()
373 return ic.ToDecimal(provider); in ChangeType()
1635 public static decimal ToDecimal(sbyte value) { in ToDecimal() method in System.Convert
1639 public static decimal ToDecimal(byte value) { in ToDecimal() method in System.Convert
1643 public static decimal ToDecimal(char value) { in ToDecimal() method in System.Convert
1647 public static decimal ToDecimal(short value) { in ToDecimal() method in System.Convert
1656 public static decimal ToDecimal(int value) { in ToDecimal() method in System.Convert
1661 public static decimal ToDecimal(uint value) { in ToDecimal() method in System.Convert
1665 public static decimal ToDecimal(long value) { in ToDecimal() method in System.Convert
[all …]
H A Diconvertible.cs65 Decimal ToDecimal(IFormatProvider provider); in ToDecimal() method
143 Decimal IConvertible.ToDecimal(IFormatProvider provider) in IConvertible.ToDecimal()
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.CoreLib/shared/System/
H A DConvert.cs240 return v.ToDecimal(provider); in ChangeType()
294 return value.ToDecimal(provider); in DefaultToType()
368 return ic.ToDecimal(provider); in ChangeType()
1812 public static decimal ToDecimal(sbyte value) in ToDecimal() method in System.Convert
1817 public static decimal ToDecimal(byte value) in ToDecimal() method in System.Convert
1822 public static decimal ToDecimal(char value) in ToDecimal() method in System.Convert
1827 public static decimal ToDecimal(short value) in ToDecimal() method in System.Convert
1838 public static decimal ToDecimal(int value) in ToDecimal() method in System.Convert
1844 public static decimal ToDecimal(uint value) in ToDecimal() method in System.Convert
1849 public static decimal ToDecimal(long value) in ToDecimal() method in System.Convert
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/CoreLib/System/
H A DConvert.cs240 return v.ToDecimal(provider); in ChangeType()
294 return value.ToDecimal(provider); in DefaultToType()
368 return ic.ToDecimal(provider); in ChangeType()
1812 public static decimal ToDecimal(sbyte value) in ToDecimal() method in System.Convert
1817 public static decimal ToDecimal(byte value) in ToDecimal() method in System.Convert
1822 public static decimal ToDecimal(char value) in ToDecimal() method in System.Convert
1827 public static decimal ToDecimal(short value) in ToDecimal() method in System.Convert
1838 public static decimal ToDecimal(int value) in ToDecimal() method in System.Convert
1844 public static decimal ToDecimal(uint value) in ToDecimal() method in System.Convert
1849 public static decimal ToDecimal(long value) in ToDecimal() method in System.Convert
[all …]
/dports/security/keepass-plugin-keepassrpc/keepassrpc-1.8.0/Jayrock/src/Jayrock.Json/Json/
H A DJsonNumber.cs139 public decimal ToDecimal() in ToDecimal() method
235 decimal IConvertible.ToDecimal(IFormatProvider provider) in IConvertible.ToDecimal()
237 return ToDecimal(); in IConvertible.ToDecimal()
300 return number.ToDecimal(); in operator decimal()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Data.Common/src/System/Data/Common/
H A DDecimalStorage.cs194 value = ((IConvertible)value).ToDecimal(FormatProvider); in ConvertValue()
225 _values[record] = ((IConvertible)value).ToDecimal(FormatProvider); in Set()
243 return XmlConvert.ToDecimal(s); in ConvertXmlToObject()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Data.Linq/src/DbLinq/Data/Linq/Sugar/Expressions/
H A DSpecialExpression.cs195 var value = System.Convert.ToDecimal(operand.Evaluate()); in Execute()
206 var value = System.Convert.ToDecimal(operand.Evaluate()); in Execute()
214 … decimal sum = operands.Select(op => System.Convert.ToDecimal(op.Evaluate())).Sum(); in Execute()
221 sum += System.Convert.ToDecimal(operand.Evaluate()); in Execute()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Serialization.Formatters/src/System/Runtime/Serialization/
H A DFormatterConverter.cs100 public decimal ToDecimal(object value) in ToDecimal() method in System.Runtime.Serialization.FormatterConverter
103 return System.Convert.ToDecimal(value, CultureInfo.InvariantCulture); in ToDecimal()
/dports/lang/mono/mono-5.10.1.57/external/nunit-lite/NUnitLite-1.0.0/src/framework/Constraints/
H A DNumerics.cs123 return AreEqual(Convert.ToDecimal(expected), Convert.ToDecimal(actual), tolerance); in AreEqual()
242 decimal decimalTolerance = Convert.ToDecimal(tolerance.Value); in AreEqual()
394 return Convert.ToDecimal(expected).CompareTo(Convert.ToDecimal(actual)); in Compare()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/Common/
H A DDecimalStorage.cs171 value = ((IConvertible)value).ToDecimal(FormatProvider); in ConvertValue()
196 values[record] = ((IConvertible)value).ToDecimal(FormatProvider); in Set()
211 return XmlConvert.ToDecimal(s); in ConvertXmlToObject()
/dports/security/keepass-plugin-keepassrpc/keepassrpc-1.8.0/Jayrock/tests/Jayrock/Json/
H A DTestJsonNumber.cs120 public void ToDecimal() in ToDecimal() method in Jayrock.Json.TestJsonNumber
122 Assert.AreEqual(1.5m, Number("1.5").ToDecimal()); in ToDecimal()
184 Assert.AreEqual(7.25e-5m, Number("7.25e-005").ToDecimal()); in ConversionToDecimalUsingExponentialNotation()
/dports/devel/newtonsoft-json/Newtonsoft.Json-9.0.1/Src/Newtonsoft.Json/Utilities/
H A DMiscellaneousUtils.cs61 …return Convert.ToDecimal(objA, CultureInfo.CurrentCulture).Equals(Convert.ToDecimal(objB, CultureI… in ValueEquals()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/tests/ParsersAndFormatters/Parser/
H A DTestData.Parser.DecimalsAndFloats.cs39 …ta<decimal>("0.01e" + int.MinValue, new MutableDecimal() { Scale = 28 }.ToDecimal(), 'E', expected…
40 … + int.MinValue, new MutableDecimal() { Scale = 28, IsNegative = true }.ToDecimal(), 'E', expected…
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Private.Xml/src/System/Xml/Schema/
H A DXmlValueConverter.cs178 public abstract decimal ToDecimal(string value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
179 public abstract decimal ToDecimal(object value); in ToDecimal() method in System.Xml.Schema.XmlValueConverter
877 public override decimal ToDecimal(string value) in ToDecimal() method in System.Xml.Schema.XmlNumeric10Converter
884 public override decimal ToDecimal(object value) in ToDecimal() method in System.Xml.Schema.XmlNumeric10Converter
893 if (sourceType == StringType) return this.ToDecimal((string)value); in ToDecimal()
1045 if (destinationType == DecimalType) return this.ToDecimal((string)value); in ChangeType()
1063 if (destinationType == DecimalType) return this.ToDecimal(value); in ChangeType()
2075 public override decimal ToDecimal(string value) in ToDecimal() method in System.Xml.Schema.XmlUntypedConverter
2079 return XmlConvert.ToDecimal((string)value); in ToDecimal()
2081 public override decimal ToDecimal(object value) in ToDecimal() method in System.Xml.Schema.XmlUntypedConverter
[all …]

12345678910>>...12