var Num:double;
if Num<0 then Label.Caption:=FormatFloat( '00.00',Num);
if Num=0 then Label.Caption:='±0';
if Num>0 then Label.Caption:=FormatFloat('+00.00',Num);
をエレガント且つ簡略に一行で済ませる方法はありませんか?
Label1.Caption:=FormatFloat('+00.00;-00.00;±0',Num);
は、どうですか?
ビンゴ!です。
igy様ありがとうございました。
ツイート | ![]() |