I'm new in Swift language and playing with it. I know in most languages 1.5e3
means 1.5 * 10 ^3
and this is true in Swift. However, when it comes base 16, I have difficulty in understanding it. Below are 2 examples, hope someone can explain what they are:
println(0x12e3)
println(0x12p3)
The results are:
4835
144.0