On Wed, 27 Jun 2018, Darius Blaszyk wrote:

Hi,

I have the following format specifier in C : %+.05f. What would be the FPC
equivalent?

A float is printed like this: -0.70711

The specified '+' will explicitly print out the sign for the float
independent if it is a positive or negative.

It should be %.5f in FPC.
But the + cannot be mimicked. FPC does not have this option.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to