A game framework written with osu! in mind.
at master 19 lines 582 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using System.Globalization; 5 6namespace osu.Framework.Bindables 7{ 8 public class BindableFloat : BindableNumber<float> 9 { 10 public BindableFloat(float defaultValue = 0) 11 : base(defaultValue) 12 { 13 } 14 15 public override string ToString() => Value.ToString("0.0###", NumberFormatInfo.InvariantInfo); 16 17 protected override Bindable<float> CreateInstance() => new BindableFloat(); 18 } 19}