OniLink10
 Joined: Jul 2008
Posts: 68
|
 |
Posted on: September 14, 2008, 06:24:24 AM |
|
|
|
Where can I find it in the ENIGMA SHELL? I need to find it for another Project I'm doing.
|
|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #1 Posted on: September 14, 2008, 04:17:10 PM |
|
|
|
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);
|
|
|
OniLink10
 Joined: Jul 2008
Posts: 68
|
 |
Reply #2 Posted on: September 14, 2008, 07:08:47 PM |
|
|
The C++ version used in the SHELL would be easier to convert to C#... Ah well, I'll give it a shot! Quote from: RetroX on September 14, 2008, 04:17:10 PM 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);
|
|
|
|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #4 Posted on: September 14, 2008, 08:30:52 PM |
|
|
|
It's in math.h.
|
|
|
Austin
 Joined: Apr 2008
Posts: 32
|
 |
Reply #5 Posted on: September 15, 2008, 05:23:43 AM |
|
|
|
I believe that it is on the ceiling...
|
|
|
sprintf()
Past Contributor Joined: Apr 2008
Posts: 72
|
 |
Reply #6 Posted on: September 15, 2008, 06:36:16 PM |
|
|
|
ROFLMAO
<.<
|
|
|
|
|
RetroX
Master of all things Linux
 Joined: Apr 2008
Posts: 1,055
|
 |
Reply #8 Posted on: September 21, 2008, 07:20:39 PM |
|
|
|
I am a box filled with secrets.
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #9 Posted on: September 27, 2008, 09:11:40 PM |
|
|
|
:S
I guess I've come a long way.
At any rate, floor() is (int) or int( )...
|
|
|
|