Subject: Re: Weird float problem
To: Skylar Thompson <skylar@cs.earlham.edu>
From: Simon Burge <simonb@wasabisystems.com>
List: port-pmax
Date: 04/29/2005 12:10:59
Skylar Thompson wrote:

> I've got a DECsystem 5000/240 running NetBSD 2.0.2, and I'm having a weird
> problem with floats. For example, when I run uptime, I get corrupted output
> like this:
> 
> # uptime
>  4:24PM  up  1:20, 1 user, load averages: 0.C, 0.1N, 0.12
> 
> I get similar corruptions with w, top, and package version numbers (which
> really throws off pkgsrc). Has anyone else seen this problem, or know how
> to solve it?

I haven't seen anything like that here.  Does a simple program
that just prints a floating point number fail the same way?  Eg:

	#include <stdio.h>

	main()
	{
		printf("load averages: %.2f, %.2f, %.2f\n",
		    0.123, 0.234, 0.345);
	}

Cheers,
Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/