I made a simple C # code that gets a real number but only recognizes the "," as the decimal separator. When I do receive numbers that use the "." as a separator it ignores the point. For example, if you send "2.0", it receives "20". Here is the code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
string r;
double raio;
r = Console.ReadLine();
raio = double.Parse(r);
Console.WriteLine(raio);
}
}
}