Quote: here i want to check is 4th digit/letters/chr (136.) chr is "." or number
You can't call
because it's not a string. But you don't need to - the only way the 4th character will be
is if the number is greater than or equal to
, and less than
could be negative, then numbers greater than
and less than or equal to
will also have a
as the 4th character.
var isFouthCharDot = (lbtot1 >= 100 && lbtot1 < 1000) || (lbtot1 > -100 && lbltot1 <= -10);
As a bonus, this will also avoid issues with cultures that use
as the decimal separator.