1 registered members (TipmyPip),
18,619
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Größere Zahl in variabel?
[Re: Interactive]
#438401
03/13/14 15:53
03/13/14 15:53
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
int wenn du n integer willst, double wenn du mit dezimal stellen willst.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Größere Zahl in variabel?
[Re: Interactive]
#438403
03/13/14 16:20
03/13/14 16:20
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
int test = 250000;
integer() nimmt eine var und schmeißt die nachkommastellen Weg (aka floor())
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Größere Zahl in variabel?
[Re: Interactive]
#438406
03/13/14 17:13
03/13/14 17:13
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Mit digits kannst Du keine Integer Zahlen anzeigen.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Größere Zahl in variabel?
[Re: Uhrwerk]
#438408
03/13/14 17:23
03/13/14 17:23
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
@^: funktioniert mit hackfix
#include <acknex.h>
int test_int = 100;
PANEL * test_pan =
{
digits(20, 20, "%.0f", *, 1024, test_int);
flags = SHOW;
}
void main()
{
fps_max = 60;
}
POTATO-MAN saves the day! - Random
|
|
|
Re: Größere Zahl in variabel?
[Re: Superku]
#438411
03/13/14 17:37
03/13/14 17:37
|
Joined: Mar 2014
Posts: 21
Interactive
OP
Newbie
|
OP
Newbie
Joined: Mar 2014
Posts: 21
|
@Kartoffel Danke dir, funktioniert @Superku Danke, der Fehler lag tatsächlich daran dass ich als Stellenzahl 5 eingegeben hab. @Uhrwerk, JustSid Danke
|
|
|
Re: Größere Zahl in variabel?
[Re: Interactive]
#438412
03/13/14 17:43
03/13/14 17:43
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
hab gern geholfen
muss aber sagen, dass das nicht die sauberste lösung ist... bin mir aber auch sicher, dass es dadurch keine probleme geben wird.
POTATO-MAN saves the day! - Random
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|