开发者

Char.IsDigit() vs Char.IsNumber(), what's the difference?

开发者 https://www.devze.com 2023-01-31 14:50 出处:网络
What\'s the difference between Char.IsDigit开发者_运维问答() vs Char.IsNumber()// 1/2 symbol Char.IsNumber(\'½\'); // true

What's the difference between Char.IsDigit开发者_运维问答() vs Char.IsNumber()


// 1/2 symbol
Char.IsNumber('½'); // true
Char.IsDigit('½'); // false

// Unicode character for Roman numeral 5 (V)
Char.IsNumber('\x2165'); // true
Char.IsDigit('\x2165'); // false
0

精彩评论

暂无评论...
验证码 换一张
取 消