Subject: alpha/6634
To: None <port-alpha@netbsd.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: port-alpha
Date: 04/04/2000 08:34:19
G'day,

there seem to be a problem with promoting float to double. There is an
entry in the gnats database which describes but doesn't offer any
solution to this problem (PR6634)

This still seems to be unsolved - try test below:

#include <stdio.h>

main()
{

    double i;
    float j;

    i = 12.0 / 0;
    printf("i: %f\n", i);

    j = 12.0 / 0;
    printf("j: %f\n", j);
} 

resulting into

i: Inf
j: 340282346638528859811704183484516925440.000000

Any comments?

cheerio Berndt
-- 
Name    : Berndt Josef Wulf            | +++ With BSD on Packet Radio +++
E-Mail  : wulf@ping.net.au             |    tfkiss, tnt, dpbox, wampes
ICQ     : 18196098                     |  VK5ABN, Nairne, South Australia 
URL     : http://www.ping.net.au/~wulf | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.4    | BBS  : vk5abn.#lmr.#sa.aus.oc