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

From: Veer (diggerrrrr at gmail.com)
Date: Sun Aug 31 13:19:36 EDT 2008

> 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
> right answer
> make whole part and numerator negative .
>
>
>
> On 8/31/08, Grant Rettke <grettke at acm.org> wrote:
>> This message was originally posted here:
>> http://groups.google.com/group/study-htdp/browse_thread/thread/4be081a64769dcfb
>> 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)
>>
>> DrScheme allows adding fractions via Menu->Special->Insert Fraction.
>> 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.
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>


Posted on the users mailing list.