English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 18 January 2006, 03:16   #1
AmigaEd
Zone Friend
 
Join Date: Feb 2005
Location: USA
Posts: 35
AmiDevCpp and Floats

Hello,

O.k. I'm trying to learn C and I've come up against something that I'm hoping someone can clarify for me.

From the Amiga C Manual tutorial. I have been working with ACM1/Gadgets/Example11.

Under gcc, I can compile Example11.c which contains the following line and then actually get the expected output.

printf("Hor= %1.0f\n", (float) my_prop_info.HorizPot / MAXPOT * 32);

If I try to compile Example11.c with the above line under AmiDevCpp v0.5 It just does not seem to work. I suspect that the problem is with the float (%f) type? Is there some other type that I should be using when trying to compile with AmiDevCpp?

Thank you,
AmigaEd
AmigaEd is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
AmiDEVcpp: Allocating gfxdata in chip mem tolkien Coders. C/C++ 9 22 April 2013 20:21
Need Some Info About Compilng AmigaOS 3.x Binaries in AmiDevCpp Franz Bazarov Coders. General 9 14 May 2009 18:37

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:51.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06304 seconds with 15 queries