My problem is, I'm using a printf command to print a formatted decimal, but there's an unwanted carriage return (two, actually) in there, so instead of getting
"Number: [5.02]"
I get
"Number:[
5.02
]"
using essentially the code below
Code: Select all
<? echo("Number: [");
?><div id="blah"><?
printf('%03.1f',($test));
?></div><? echo(']'); ?>Any help appreciated, thanks!
--Tony