A game framework written with osu! in mind.
at master 19 lines 588 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 BindableDouble : BindableNumber<double> 9 { 10 public BindableDouble(double defaultValue = 0) 11 : base(defaultValue) 12 { 13 } 14 15 public override string ToString() => Value.ToString("0.0###", NumberFormatInfo.InvariantInfo); 16 17 protected override Bindable<double> CreateInstance() => new BindableDouble(); 18 } 19}