IUStringUnitsToAIReal doesn't recognize comma as decimal separator
std::string input_ = "1,5"; // From Adobe header: The string to convert, which uses the localized international utilities (IU) decimal separator.
AIReal n;
sAIUser->IUStringUnitsToAIReal(ai::UnicodeString(input_), &n);
This function interprets the text "1,5" as "15" even when the locale is set to a country where the system uses a comma decimal separator. Related functions IUStringToAIReal recognizes the comma, though.
4
votes
![](https://secure.gravatar.com/avatar/dc0e59e50451dc7c2db11d84d7689b6d?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)