Answer the question
In order to leave comments, you need to log in
Why is the dot replaced with a comma?
I declare a variable
public Vector2 PlayerPosition = new Vector2(42.3627f, -71.05686f);
Url = "http://open.mapquestapi.com/staticmap/v4/getmap?key=" + Key + "&size=1280,1280&zoom=" + _zoom + "&type=" + _maptype + "¢er=" + PlayerPosition.x + "," + PlayerPosition.y;
Answer the question
In order to leave comments, you need to log in
Because in Russian the decimal separator is a comma.
And if it is necessary in a programmer's format - with a dot, then we use:int.ToString(CultureInfo.InvariantCulture)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question