18 January 2006, 03:16 | #1 |
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 |
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 |
|
|