diff --git a/src/BizHawk.Client.Common/movie/BasicMovieInfo.cs b/src/BizHawk.Client.Common/movie/BasicMovieInfo.cs index 6e2efa5086..407e30c7e8 100644 --- a/src/BizHawk.Client.Common/movie/BasicMovieInfo.cs +++ b/src/BizHawk.Client.Common/movie/BasicMovieInfo.cs @@ -72,7 +72,7 @@ namespace BizHawk.Client.Common const decimal attosInSec = 1_000_000_000_000_000_000.0M; var m = attosInSec; m /= ulong.Parse(vsyncAttoStr); - return m.ConvertToF64(); + return decimal.ToDouble(m); } return PlatformFrameRates.GetFrameRate(SystemID, IsPal); diff --git a/src/BizHawk.Client.EmuHawk/tools/BasicBot/BotControlsRow.cs b/src/BizHawk.Client.EmuHawk/tools/BasicBot/BotControlsRow.cs index d4217c7d16..5835cc8d3c 100644 --- a/src/BizHawk.Client.EmuHawk/tools/BasicBot/BotControlsRow.cs +++ b/src/BizHawk.Client.EmuHawk/tools/BasicBot/BotControlsRow.cs @@ -23,7 +23,7 @@ namespace BizHawk.Client.EmuHawk public double Probability { - get => ProbabilityUpDown.Value.ConvertToF64(); + get => decimal.ToDouble(ProbabilityUpDown.Value); set => ProbabilityUpDown.Value = new(value); } diff --git a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadTargetScreen.cs b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadTargetScreen.cs index e57e9c858b..e32207b750 100644 --- a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadTargetScreen.cs +++ b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadTargetScreen.cs @@ -196,7 +196,7 @@ namespace BizHawk.Client.EmuHawk XNumeric.Value = XNumeric.Maximum; } - _stickyHoldController.SetAxisHold(XName, (XNumeric.Value.ConvertToF32() * MultiplierX).RoundToInt()); + _stickyHoldController.SetAxisHold(XName, (decimal.ToSingle(XNumeric.Value) * MultiplierX).RoundToInt()); _isSet = true; } } @@ -218,7 +218,7 @@ namespace BizHawk.Client.EmuHawk YNumeric.Value = YNumeric.Maximum; } - _stickyHoldController.SetAxisHold(YName, (YNumeric.Value.ConvertToF32() * MultiplierY).RoundToInt()); + _stickyHoldController.SetAxisHold(YName, (decimal.ToSingle(YNumeric.Value) * MultiplierY).RoundToInt()); _isSet = true; } }