Returning 0 for unparsable values is really a silent failure that gives you bad values in the generated code. Code like this should IMO throw a ProcessTokenException or a FormatException
Importing a token for something like always returns 0.0 because of the missing space between "*" and "2". It doesn't think there is a math operator so it parses them as a number and if that is null it returns zero.
:information_source: Info
Version:
0.2.1-alpha
:speech_balloon: Description
Returning 0 for unparsable values is really a silent failure that gives you bad values in the generated code. Code like this should IMO throw a
ProcessTokenException
or aFormatException
:scroll: tokens file you tried to import
Importing a token for something like always returns 0.0 because of the missing space between "*" and "2". It doesn't think there is a math operator so it parses them as a number and if that is null it returns zero.