If fractions are found in place of indices, they’ll be converted to floor values ( integer values less than or equal to a given value).
SYNTAX – string. Substring(starting_Index, ending-Index)
- Starting_index – the needed first position. The first character is at index 0 ( 0-based indexing ).
- ending_index – the required last position(not including this position). It is optional.