http://www.hirano-dept.com/blog/2011/01/iphone-uilabel.html
NSString *str = @"sample string";
CGSize size = [str
sizeWithFont:[UIFont boldSystemFontOfSize:13]
constrainedToSize:CGSizeMake(5…
小数点以下第2位で四捨五入
$num2 = round($num1,2);
echo $num2;
これで$num2は小数点第二位まで表示されます。(12.22、5053.35など)
この投稿へのコメント
コメントはまだありません。