[ create a new paste ] login | about

Link: http://codepad.org/bGh7OvQM    [ raw code | output | fork ]

PHP, pasted on Oct 22:
1
2
3
4
5
<?php

echo bin2hex(pack('f', 3.2)) . "\n"; 
echo bin2hex(pack('f', sqrt(-1))) . "\n"; // NaN
echo bin2hex(pack('f', pow(99,99999))) . "\n"; // + Infinity


Output:
1
2
3
cdcc4c40
0000c0ff
0000807f


Create a new paste based on this one


Comments: