I found a rather strange number declaration in Java somewhere.
double x = 0xap-001;
I'm curious why the x value is 5.0
p indicates binary exponentiation. So you have hex 0xa == 10, with a binary exponent of -1 - in other words, a right shift or div 2. The result is 10/2 = 5.
Source: https://habr.com/ru/post/986581/More articles:Git add a branch to one directory? - gitCheck if system block is active in bash script - linuxSamsung Note 2 can't reach onLocationChanged () - androidHierarchical Maze Solr. An example is needed - solrHow does the CLR implement IEnumerable in arrays? - arraysGAE managed virtual machine always unhealthy reboot - google-app-engineThe pythonic way of filtering data with overlapping dates - pythonHow to enter integers safely? - rustCan I turn a string into a block of code in swift? - iosNew products in applications Purchases added to the second version are not returned by apple - objective-cAll Articles