Short answer: No.
Define "decimal number". You have given examples of integers.
Do you mean any of the standard integral types or are you defining
your own? If you are defining your own then you must provide that
functionality if you need it.
In your examples the first one might be of type short, the second of
type int on a modern 32-bit compiler.
The size of any standard numeric type is invariant across that
particular type for that particular implementation. The sizeof
operator is the proper and standard method for obtaining the size of
those types.
One would use sizeof(long) or sizeof(int) sizeof(short) for example.