Re: Weird float problem

Simon Burge <[email protected]>
Newsgroups gmane.os.netbsd.ports.pmax
Organization Wasabi Systems, Inc.
Message-ID <[email protected]>
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                            <[email protected]>
NetBSD Support and Service:         http://www.wasabisystems.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.