.
binaryworrier: , modulo, ,
1234123412340001
sshow: , (12), ,
0000123412341234
:
UInt64 ccNumber;
string s = ccNumber.ToString().Text.PadLeft(15, 'myString');
string last = "*"+s.Substring(s.Length-4);
But on a more abstract note, is a credit card number really a number? I think no; it is much more likely that you will want to manipulate numbers by number than do arithmetic. Your advantage of converting char [16] to UInt64 reduces memory space by 50%. No wait 75% are stupid double-byte characters!
source
share