View unanswered posts | View active topics It is currently Sat Jul 26, 2014 11:26 am






Reply to topic  [ 1 post ] 
floating point arithmetics soon available for NXC/NBC 
Author Message
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post floating point arithmetics soon available for NXC/NBC
Floating point arithmetics will soon be available also for NXC/NBC users

- hopefully without producing NAN multiplication errors like RobotC:

John Hansen wrote:
Here's the list as it stands today. Some of these may drop off if they prove to be excessively complex.

LEGO robotics TODO List
-
1. BricxCC for Mac OSX (NXT, RCX, Spybot, Scout support)
2. BricxCC for Linux (NXT, RCX, Spybot, Scout support)
3. Bug-free enhanced array syntax in NXC (for scalar, struct, and string types)
4. Float support in NXC
...

the link:
http://forums.nxtasy.org/index.php?show ... st&p=25770

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Wed Jan 21, 2009 1:03 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.