Skip to content

Commit

Permalink
[BUG] Entering real number. (#253)
Browse files Browse the repository at this point in the history
* Create draft PR for #252

* fixes an issue an issue when modifying the float value trims sep

---------

Co-authored-by: PTKu <PTKu@users.noreply.github.com>
Co-authored-by: PTKu <61538034+PTKu@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 3, 2023
1 parent b432bb9 commit 9c80272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

private void Change(ChangeEventArgs args)
{
if (Double.TryParse(args.Value.ToString().Replace('.', ','), out var parseValue))
if (Double.TryParse(args.Value.ToString(), out var parseValue))
Value = parseValue;

Key++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

private void Change(ChangeEventArgs args)
{
if (Single.TryParse(args.Value.ToString().Replace('.', ','), out var parseValue))
if (Single.TryParse(args.Value.ToString(), out var parseValue))
Value = parseValue;

Key++;
Expand Down

0 comments on commit 9c80272

Please sign in to comment.