Updated: 5 August 2010
Use DOLLARFR to Convert a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.
SELECT [westclintech].[wct].[DOLLARFR] (
the decimal number to be converted. @Decimal_dollar is an expression of type float or of a type that can be implicitly converted to float.
the integer to be used as the denominator in converting the fraction. @Fraction is an expression of type int or of a type that can be implicitly converted to int.
· If @Fraction is less than zero, an error will be returned
· If @Fraction is equal to a zero, a divide by zero error will be returned
Here is the result set