|
@@ -76,6 +76,8 @@ class Std {
|
|
return untyped __int__(x);
|
|
return untyped __int__(x);
|
|
#elseif php
|
|
#elseif php
|
|
return untyped __php__("intval")(x);
|
|
return untyped __php__("intval")(x);
|
|
|
|
+ #elseif cpp
|
|
|
|
+ return untyped __global__.__int__(x);
|
|
#else
|
|
#else
|
|
if( x < 0 ) return Math.ceil(x);
|
|
if( x < 0 ) return Math.ceil(x);
|
|
return Math.floor(x);
|
|
return Math.floor(x);
|