# [plt-scheme] DrScheme Can't Insert Negative Fractions?

 From: Veer (diggerrrrr at gmail.com) Date: Sun Aug 31 13:19:36 EDT 2008 Previous message: [plt-scheme] DrScheme Can't Insert Negative Fractions? Next message: [plt-scheme] DrScheme Can't Insert Negative Fractions? Messages sorted by: [date] [thread] [subject] [author]

```> I think "-17 7/9"   means -17 + 7/9  and not -(17 + 7/9) ,  to get the

ok , what i meant was when you enter -17 in whole part and 7 and 9 in
numerator and
denominator , then the expression became -17 + 7/9  which is not same as -17 7/9
and -17 7/9  is indeed -(17 + 7/9) .

On 8/31/08, Veer <diggerrrrr at gmail.com> wrote:
> I think "-17 7/9"   means -17 + 7/9  and not -(17 + 7/9) ,  to get the
> make whole part and numerator negative .
>
>
>
> On 8/31/08, Grant Rettke <grettke at acm.org> wrote:
>> This message was originally posted here:
>> by my friend Kartik.
>> I cross-posted it on his behalf so that he might have an answer in the
>> morning (his time). BTW, we haven't discussed check-result and
>> check-within, yet.
>> ;;
>> While attempting to solve fahrenheit to celsius problem I was trying
>> to add a simple test which tests the following condition
>>
>> (= (fahrenheit-to-celsius 0) -17 7/9)
>>
>> However, when I try inserting a fraction for -17 7/9 it gets converted
>> to -16 2/9.
>>
>> Is this a bug?  17 7/9 by itself gets added properly but not its
>> equivalent negative value.
>> _________________________________________________