codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/6yMNgpJf
[
raw code
|
output
|
fork
]
PHP
,
pasted on Aug 20:
1
2
3
4
5
6
7
8
<?php
$x
=
1.234
;
$d
=
$x
-
(
int
)
$x
;
// $d now equals 1.234
echo
$d
;
?>
Output:
1
0.234
Create a new paste based on this one
Comments: