🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sunyab.tutorial
1 messages
1 total messages Started by steven j hinkle Sun, 17 Feb 1991 20:14
Truncating a double float
#3
Author: steven j hinkle
Date: Sun, 17 Feb 1991 20:14
18 lines
1091 bytes
   I would like to know if there is a good, "clean" way to truncate
a double float in C to a certain (given) accuracy point. 

   Example : I want to truncate a double to the tenth decimal point.

Anyone got a good idea how I can do this so that my code is portable?

Any help would be appreciated.

Steven Hinkle


-- 
|  Steven Hinkle   "The Quaker"       |  Always look on the bright side.|
|  University of Buffalo              |  If there isn't one, check the  |
|  INTERNET : hinkle@acsu.buffalo.edu |  light bulb, it is probably     |
|  BITNET   : hinkle@sunybcs          |  burned out.                    |
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads