TPU ChatChat on IRC
Internet Relay Chat?
Java Applet client
Who's on IRC?
Borland C++ Builder Precision
Posted by 142857 [send private reply] at March 29, 2003, 10:33:23 PM Does anyone know how to set the precision on some label boxes I'm using in Borland C++ Builder 6? For example, I want 1.1643, and it displays 1.1643002526...
Posted by CViper [send private reply] at March 30, 2003, 04:39:59 AM you could sprintf( buff, "%1.4f", your_float ); Then set the label to buff.
Posted by 142857 [send private reply] at March 30, 2003, 08:50:36 AM never mind--i found
long double value, TStringFloatFormat format,
int precision, int digits);
Posted by CViper [send private reply] at March 30, 2003, 11:11:07 AM guess that's the long version of it ;)
Register as a new user