Java½â»ó1 2ÕÒÁãʱ¿Ì
Ç뿼ÂÇÏÂÃæÕâ¶Î»°ËùÃèÊöµÄÎÊÌ⣺
TomÔÚÒ»¼ÒÆû³µÅä¼þÉ̵깺ÂòÁËÒ»¸ö¼ÛÖµ$1.10µÄ»ð»¨Èû£¬µ«ÊÇËûÇ®°üÖж¼ÊÇÁ½ÃÀÔªÒ»Õŵij®Æ±¡£Èç¹ûËûÓÃÒ»ÕÅÁ½ÃÀÔªµÄ³®Æ±Ö§¸¶Õâ¸ö»ð»¨Èû£¬ÄÇôӦ¸ÃÕÒ¸øËû¶àÉÙÁãÇ®ÄØ£¿
ÏÂÃæÊÇÒ»¸öÊÔͼ½â¾öÉÏÊöÎÊÌâµÄ³ÌÐò£¬Ëü»á´òÓ¡³öʲôÄØ£¿
public class Change{
public static void main(String args[]){
System.out.println(2.00 - 1.10);
}
}
Äã¿ÉÄÜ»áºÜÌìÕæµØÆÚÍû¸Ã³ÌÐòÄܹ»´òÓ¡³ö0.90£¬µ«ÊÇËüÈçºÎ²ÅÄÜÖªµÀÄãÏëÒª´òӡСÊýµãºóÁ½Î»Ð¡ÊýÄØ£¿
Èç¹ûÄã¶ÔÔÚDouble.toStringÎĵµÖÐËùÉ趨µÄ½«doubleÀàÐ͵Äֵת»»Îª×Ö·û´®µÄ¹æÔòÓÐËùÁ˽⣬Äã¾Í»áÖªµÀ¸Ã³ÌÐò´òÓ¡³öÀ´µÄСÊý£¬ÊÇ×ãÒÔ½«doubleÀàÐ͵ÄÖµÓë×î¿¿½üËüµÄÁÙ½üÖµÇø·Ö³öÀ´µÄ×î¶ÌµÄСÊý£¬ËüÔÚСÊýµã֮ǰºÍÖ®ºó¶¼ÖÁÉÙÓÐһλ¡£Òò´Ë£¬¿´ÆðÀ´£¬¸Ã³ÌÐòÓ¦¸Ã´òÓ¡0.9ÊǺÏÀíµÄ¡£
Õâô·ÖÎö¿ÉÄÜÏԵúܺÏÀí£¬µ«ÊDz¢²»ÕýÈ·¡£Èç¹ûÄãÔËÐиóÌÐò£¬Äã¾Í»á·¢ÏÖËü´òÓ¡µÄÊÇ0.8999999999999999¡£
ÎÊÌâÔÚÓÚ1.1Õâ¸öÊý×Ö²»Äܱ»¾«È·±íʾ³ÉΪһ¸ödouble£¬Òò´ËËü±»±íʾ³ÉΪ×î½Ó½üËüµÄdoubleÖµ¡£¸Ã³ÌÐò´Ó2ÖмõÈ¥µÄ¾ÍÊÇÕâ¸öÖµ¡£Òź¶µÄÊÇ£¬Õâ¸ö¼ÆËãµÄ½á¹û²¢²»ÊÇ×î½Ó½ü0.9µÄdoubleÖµ¡£±íʾ½á¹ûµÄdoubleÖµµÄ×î¶Ì±íʾ¾ÍÊÇÄãËù¿´µ½µÄ´òÓ¡³öÀ´µÄÄǸö¿É¶ñµÄÊý×Ö¡£
¸üÒ»°ãµØ˵£¬ÎÊÌâÔÚÓÚ²¢²»ÊÇËùÓеÄСÊý¶¼¿ÉÒÔÓöþ½øÖƸ¡µãÊýÀ´¾«È·±íʾµÄ¡£
Èç¹ûÄãÕýÔÚÓõÄÊÇJDK 5.0»ò¸üеİ汾£¬ÄÇôÄã¿ÉÄÜ»áÊÜÆäÓÕ»ó£¬Í¨¹ýʹÓÃprintf¹¤¾ßÀ´ÉèÖÃÊä³ö¾«¶ÈµÄ·½¶©Õý¸Ã³ÌÐò£º
//×¾ÁӵĽâ¾ö·½°¸——ÈÔ¾ÉÊÇʹÓöþ½øÖƸ¡µãÊý
System.out.printf("%.2f%n",2.00 - 1.10);
ÕâÌõÓï¾ä´òÓ¡µÄÊÇÕýÈ·µÄ½á¹û£¬µ«ÊÇÕâ²¢²»±íʾËü¾ÍÊǶԵײãÎÊÌâµÄͨÓýâ¾ö·½°¸£ºËüʹÓõÄÈÔ¾ÉÊǶþ½øÖƸ¡µãÊýµÄdoubleÔËËã¡£¸¡µãÔËËãÔÚÒ»¸ö·¶Î§ºÜ¹ãµÄÖµÓòÉÏÌṩÁ˺ܺõĽüËÆ£¬µ«ÊÇËüͨ³£²»ÄܲúÉú¾«È·µÄ½á¹û¡£¶þ½øÖƸ¡µã¶ÔÓÚ»õ±Ò¼ÆËãÊǷdz£²»Êʺϵģ¬ÒòΪËü²»¿ÉÄܽ«0.1——»òÕß10µÄÆäËüÈκδθºÃÝ——¾«È·±íʾΪһ¸ö³¤¶ÈÓÐÏ޵Ķþ½øÖÆСÊý
½â¾ö¸ÃÎÊÌâµÄÒ»ÖÖ·½Ê½ÊÇʹÓÃijÖÖÕûÊýÀàÐÍ£¬ÀýÈçint»òlong£¬²¢ÇÒÒÔ·ÖΪµ¥Î»À´Ö´ÐмÆËã¡£Èç¹ûÄã²ÉÄÉÁË´Ë·Ïߣ¬ÇëÈ·±£¸ÃÕûÊýÀàÐÍ´óµ½×ã¹»±íʾÔÚ³ÌÐòÖÐÄ㽫ҪÓõ½µÄËùÓÐÖµ¡£¶ÔÕâÀï¾ÙÀýµÄÃÕÌâÀ´Ëµ£¬int¾Í×ã¹»ÁË¡£ÏÂÃæÊÇÎÒÃÇÓÃintÀàÐÍÀ´ÒÔ·ÖΪµ¥Î»±íʾ»õ±ÒÖµºóÖØдµÄprintlnÓï¾ä¡£Õâ¸ö°æ±¾½«´òÓ¡³öÕýÈ·´ð°¸90·Ö£º
System.out.println((200 - 110) + "cents");
½â¾ö¸ÃÎÊÌâµÄÁíÒ»ÖÖ·½Ê½ÊÇÊ
Ïà¹ØÎĵµ£º
Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......
Ä¿±ê:Óа²×°³ÌÐò°üÏñ°²×°qqÒ»Ñù¼òµ¥Ò»Ö±ÏÂÒ»²½¼´¿É ,¿ÉжÔØ,ÒªÇó³ÌÐò×Ô¶¯Æô¶¯,²»ÐèÒªµ¥¶À°²×°JRE,¾ÍÔÚдÕâÌ×½â¾ö·½°¸µÄʱºò,ÎÒÕæÊÇ°Ù°ãÍ´ºÞ΢Èí.°¥ÎÞÄΰ¡.ÐÒºÃ×îÖÕ»¹ÊDZ»ÎÒÏë³öÀ´ÁË,·ÖÏíÏ°ɡ£
µÚÒ»²½
jre¼õ·Ê,ɾ³ýjre\lib\rt.jarÖв»Ê¹ÓõÄÀà,ɾ³ýcharsets.jarÖв»Ê¹ÓõÄ×Ö·û¼¯±àÂë.MyWork¿ªÔ´ÏîÄ¿(http://mywor ......
[ÕªÒª]
±¾ÎĽéÉÜÁËһϵÁлùÓÚWindows CEµÄJavaÐéÄâ»úÒÔ¼°¼¯³É¿ª·¢»·¾³£¬ÆäÖаüÀ¨ IBM¹«Ë¾µÄVisual Age Micro Edition
£¨¾ÍÊÇÏÖÔÚµÄWebSphere Studio Device Developer£©,
Sun¹«Ë¾µÄPersonal Java, WabaSoft ·¢ÆðµÄWaba£¬Insignia¹«Ë¾µÄJeode (¾ÍÊÇÏÖÔÚEsmertecµÄJeode)£¬Nsicom¹«Ë¾µÄCrEmeÒÔ¼°New
Monics¹«Ë¾µÄPE ......
JAVAÊý¾ÝÀàÐÍת»»
һЩ³õѧJAVAµÄÅóÓÑ¿ÉÄÜ»áÓöµ½JAVAµÄÊý¾ÝÀàÐÍÖ®¼äת»»µÄ¿àÄÕ£¬ÀýÈ磬ÕûÊýºÍfloat,doubleÐÍÖ®¼äµÄת»»£¬ÕûÊýºÍStringÀàÐÍÖ®¼äµÄ
ת»»£¬ÒÔ¼°´¦Àí¡¢ÏÔʾʱ¼ä·½ÃæµÄÎÊÌâµÈ¡£ÏÂÃæ±ÊÕ߾Ϳª·¢ÖеÄһЩÌå»á½éÉܸø´ó¼Ò¡£
ÎÒÃÇÖªµÀ£¬JavaµÄÊý¾ÝÀàÐÍ·ÖΪÈý´óÀà ......
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......