How to disable character codes 178 (0xB2) (²) , 179 (0xB3) (³), and 185 (0xB9) (¹) as digits?
问题 With SWI-Prolog when generating digits using code_type(X,digit). the result is the expected ASCII character codes and 178 (0xB2) ² 179 (0xB3) ³ 185 (0xB9) ¹ e.g. code_type(X,digit). X = 48 ; X = 49 ; X = 50 ; X = 51 ; X = 52 ; X = 53 ; X = 54 ; X = 55 ; X = 56 ; X = 57 ; X = 178 ; X = 179 ; X = 185 ; false. How can I disable or change the functionality so that characters other than 0-9 are not a digit? Obviously I can write a different routine, but I am wondering if there is not some option