|
RetroX
|
|
Reply #1 Posted on: September 14, 2008, 11:17:10 am |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
Here's an EDL equivelent...
var real, str, decpos, newstr; real=argument0; str=string(real); decpos=string_pos('.',str); newstr=''; for (i=1;i<decpos;i+=1;) { newstr+=string_char_at(i,str); } return real(newstr);
|
|
« Last Edit: September 14, 2008, 11:18:42 am by RetroX »
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
|
|
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #9 Posted on: September 27, 2008, 04:11:40 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
:S
I guess I've come a long way.
At any rate, floor() is (int) or int( )...
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|