| Yeni Üyelik Haber bülteni üyeliği 
 
 | 
 Math Nesnesi Örnekleri 
 Math nesneleri matematik işlemler yapma imkanı sağlar. 
 Dizin var pi_value = Math.PI; var sqrt_value = Math.sqrt(16); 
 Matematik Sabitleri Kullanıcılar math nesnesi üzerinden 8 matematiksel sabite ulaşabilir. 
 Math.E Math.PI Math.SQRT2 Math.SQRT1_2 Math.LN2 Math.LN10 Math.LOG2E Math.LOG10E 
 Matematik Yöntemler Matematiksel sabitlerin yanı sıra Math nesneleri kullanıcılara bazı yöntemlerde sunar. 
 Yöntem Örneği document.write(Math.round(4.7)); 
 Sonuç 5 
 Örnek 1 <html> <body> 
 <script type="text/javascript"> 
 document.write(Math.round(1.23)+"<br />"); document.write(Math.round(3.35)+"<br />"); document.write(Math.round(0.15)+"<br />"); document.write(Math.round(-6.65)+"<br />"); document.write(Math.round(-12.60)); 
 </script> 
 </body> </html> 
 
 Örnek 2 <html> <body> 
 <script type="text/javascript"> 
 document.write(Math.random()); 
 </script> 
 </body> </html> 
 
 Örnek 3 <html> <body> 
 <script type="text/javascript"> 
 document.write(Math.max(15,7)+"<br />"); document.write(Math.max(-2,-9)+"<br />"); document.write(Math.max(-1,15)+"<br />"); document.write(Math.max(-1.25,-1.30)); 
 </script> 
 </body> </html> 
 
 Örnek 4 <html> <body> 
 <script type="text/javascript"> 
 document.write(Math.min(15,7)+"<br />"); document.write(Math.min(-2,-9)+"<br />"); document.write(Math.min(-1,15)+"<br />"); document.write(Math.min(-1.25,-1.30)); 
 </script> 
 </body> </html> 
 
 
						çok yardımcı oldu bu konular bize yapanın ellerine saglık...
					 | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
				 Copyright © 2005 Uzerine.com
					Copyright © 2005 Uzerine.com 
					uzerine.com Ana Sayfa | 
                    Gizlilik Sözleşmesi |
                    Üye Girişi
				
 
					





