Question Printing a percent sign in a string

Tyne

Known Member
Messages
8
Points
108
How would I make a percent sign display as a percent sign instead of a period? I've tried escape methods like %% and \%, but no luck.
 
Last edited:

CF4_99

Veteran
Messages
100
Points
663
How would I make a percent sign display as a percent sign instead of a period? I've tried escape methods like %% and \%, but no luck.
% Cannot be used as a char. It is seen as invalid and replaced with a period. The only valid chars are:

Code:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=
 

Top