Answers for "get after point in c#"

C#
0

get after point in c#

string input_decimal_number = "1.50";
    var regex = new System.Text.RegularExpressions.Regex("(?<=[\\.])[0-9]+");
    if (regex.IsMatch(input_decimal_number))
    {
        string decimal_places = regex.Match(input_decimal_number).Value;
    }
Posted by: Guest on April-27-2021
0

get after point in c#

var decPlaces = (int)(((decimal)number % 1) * 100);
Posted by: Guest on April-27-2021

Code answers related to "get after point in c#"

C# Answers by Framework

Browse Popular Code Answers by Language