From: Panayotis K. <pan...@pa...> - 2009-10-28 09:14:08
|
I have this sample code: float q = 8; System.out.println("q= " + q); This code doesn't work :( Why? |
From: Sascha H. <sa...@gm...> - 2009-10-28 09:43:13
|
What is the Error message you get? On Wednesday, October 28, 2009, Panayotis Katsaloulis <pan...@pa...> wrote: > I have this sample code: > > float q = 8; > System.out.println("q= " + q); > > > This code doesn't work :( > Why? > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Wolfgang K. <wol...@xm...> - 2009-10-28 09:44:42
|
Panayotis, what exactly do you mean by saying "doesn't work"? I assume you ran that code from within Apples emulator and caught an exception. Did you have a look into the console tool to see the error message produced? Please post that message that message to the list so that we can investigate it. -- Wolfgang Panayotis Katsaloulis wrote: > I have this sample code: > > float q = 8; > System.out.println("q= " + q); > > > This code doesn't work :( > Why? > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Panayotis K. <pan...@pa...> - 2009-10-28 09:57:26
|
On 28 Οκτ 2009, at 11:43 π.μ., Wolfgang Korn wrote: > Panayotis, > > what exactly do you mean by saying "doesn't work"? I assume you ran > that > code from within Apples emulator and caught an exception. Did you > have a > look into the console tool to see the error message produced? Please > post that message that message to the list so that we can > investigate it. > > -- Wolfgang Actually I mean doesn't work as expected. From Java of course I saw q=8 From emulator I saw q=0 no, I didn't see an exception, because this method is already "implemented" through StringBuilder/StringBuffer class It's a strange error, because inside the - (java_lang_StringBuffer*) append___float: (float) f of java_lang_StringBuffer object, the value of "f" is indeed 0 |
From: Wolfgang K. <wol...@xm...> - 2009-10-28 10:14:41
|
I see. Looks like we are having some research to do. We'll keep you posted! -- Wolfgang Panayotis Katsaloulis wrote: > On 28 Οκτ 2009, at 11:43 π.μ., Wolfgang Korn wrote: > > >> Panayotis, >> >> what exactly do you mean by saying "doesn't work"? I assume you ran >> that >> code from within Apples emulator and caught an exception. Did you >> have a >> look into the console tool to see the error message produced? Please >> post that message that message to the list so that we can >> investigate it. >> >> -- Wolfgang >> > > > Actually I mean doesn't work as expected. > > From Java of course I saw > q=8 > > From emulator I saw > q=0 > > no, I didn't see an exception, because this method is already > "implemented" through StringBuilder/StringBuffer class > It's a strange error, because inside the > - (java_lang_StringBuffer*) append___float: (float) f > of java_lang_StringBuffer object, the value of "f" is indeed 0 > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2009-10-28 23:59:04
|
fixed. Panayotis Katsaloulis wrote: > On 28 Οκτ 2009, at 11:43 π.μ., Wolfgang Korn wrote: > >> Panayotis, >> >> what exactly do you mean by saying "doesn't work"? I assume you ran >> that >> code from within Apples emulator and caught an exception. Did you >> have a >> look into the console tool to see the error message produced? Please >> post that message that message to the list so that we can >> investigate it. >> >> -- Wolfgang > > > Actually I mean doesn't work as expected. > > From Java of course I saw > q=8 > > From emulator I saw > q=0 > > no, I didn't see an exception, because this method is already > "implemented" through StringBuilder/StringBuffer class > It's a strange error, because inside the > - (java_lang_StringBuffer*) append___float: (float) f > of java_lang_StringBuffer object, the value of "f" is indeed 0 > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |