This commit is contained in:
smoogipoo 2018-01-02 16:12:15 +09:00
parent 08af3e6303
commit eaa2a007e7
1 changed files with 3 additions and 3 deletions

View File

@ -39,12 +39,12 @@ public virtual string TooltipText
{
var bindableDouble = CurrentNumber as BindableNumber<double>;
var bindableFloat = CurrentNumber as BindableNumber<float>;
var floatValue = bindableDouble?.Value ?? bindableFloat?.Value ?? null;
var floatValue = bindableDouble?.Value ?? bindableFloat?.Value;
if (floatValue != null)
{
var floatMinValue = bindableDouble?.MinValue ?? bindableFloat?.MinValue ?? null;
var floatMaxValue = bindableDouble?.MaxValue ?? bindableFloat?.MaxValue ?? null;
var floatMinValue = bindableDouble?.MinValue ?? bindableFloat.MinValue;
var floatMaxValue = bindableDouble?.MaxValue ?? bindableFloat.MaxValue;
if (floatMaxValue == 1 && (floatMinValue == 0 || floatMinValue == -1))
return floatValue.Value.ToString(@"P0");