sfsf
unread,Mar 13, 2008, 10:33:18 AM3/13/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Nemerle Forum
public static format_real (r : double, vornull : int, stellen : int,
nachstellen : int) : string
{
mutable fstr : string = "%";
when (vornull > 0) {
fstr = fstr + "0";
}
fstr = fstr + ztostr(stellen) + "." + ztostr(nachstellen) + "lf";
return(Nemerle.IO.sprintf("%lf" , r )); // works OK
return(Nemerle.IO.sprintf(fstr, r )); // works not
}
Nemerle.IO.sprintf("%lf" , r ) // this works
Nemerle.IO.sprintf(fstr , r ) // this works not
Why ???