ACTIVE SERVER PAGE > ¼ýÀÚ °ü·Ã ÇÔ¼ö µî·ÏÀÏ : 2017-07-04 15:03 Á¶È¸¼ö : 53,217ÀÌ ÆäÀÌÁö ¿¡¼´Â À¯¿ëÇÏ°Ô »ç¿ëÇÏ´Â ¼ýÀÚ°ü·Ã ÇÔ¼ö¿¡ ´ëÇؼ ¾Æ´Â ¸¸Å Á¤¸®ÇØ º¸°íÀÚ ÇÕ´Ï´Ù.
1. ·£´ý ¹ß»ý(³¼ö) ³¼ö¸¦ ¹ß»ýÇÏ´Â ÇÔ¼ö´Â RND() ÇÔ¼ö ÀÔ´Ï´Ù. »ç¿ë¹ý (ÃÖ´ë°ª-ÃÖ¼Ò°ª+1)*Rnd+ÃÖ¼Ò°ª 50~100 ±îÁöÀÇ ¼ö Áß¿¡ ·£´ý°ªÀ» »Ì°í ½Í´Ù¸é ¾Æ·¡Ã³·³ »ç¿ëÇÏ½Ã¸é µË´Ï´Ù. Randomize Ran=int(100-50+1)*Rnd+50 2. sqr() Á¦°ö±Ù sqr ÇÔ¼ö´Â Á¦°ö±ÙÀ» ±¸ÇÕ´Ï´Ù. 240ÀÇ Á¦°ö±ÙÀ» ±¸ÇÏ°í ½ÍÀ¸¸é ¾Æ·¡Ã³·³ ÇÏ¸é µÇ°ÚÁö¿ä? response.write sqr(240) 3. FormatCurrency() ÀÌ ÇÔ¼ö´Â ¼ýÀÚ¸¦ ÅëÈ·Î ¹Ù²Ù¾îÁÖ´Â ÇÔ¼ö ÀÔ´Ï´Ù. response.write FormatCurrency(10000,2) À§ÀÇ ¿¹Á¦´Â 10000¸¦ ÅëÈ·Î ¹Ù²Ù¾î ÁÖ¸ç, ¼Ò¼öÁ¡ ÀÌÇÏ ÀÚ¸®¼ö´Â 2ÀÚ¸®±îÁö Ç¥½ÃÇ϶ó´Â ¹®ÀåÀÔ´Ï´Ù. 4. Fix() ¼ýÀÚÀÇ Á¤¼ö ºÎºÐÀ» ¹ÝȯÇÑ´Ù. ±¸¹® : Fix(number) ' number°¡ À½¼öÀ̸é numberº¸´Ù Å©°Å³ª °°Àº ù ¹ø° À½¼ö Á¤¼ö ºÎºÐÀÌ ¹ÝȯµÈ´Ù. Fix(2830.52) ' 2830 ¹Ýȯ Fix(-2830.52) ' -2830 ¹Ýȯ 5. Cint() ¼ýÀÚ Å¸ÀÔ Áß¿¡¼ °¡Àå ÀϹÝÀûÀ¸·Î ¾²À̴ ŸÀÔÀÌ´Ù. -32,768 ~ 32,767(2ÀÇ 15½Â - 1)»çÀÌÀÇ Á¤¼ö. À½¼ö¿¡ ´ëÇؼ´Â -1.79769313486232E308 ~ -4.94065645841247E-324 , ¾ç¼ö¿¡ ´ëÇؼ´Â 4.94065645841247E-324 ~ 1.79769313486232E308 ±îÁöÀÇ ¹èÁ¤µµ ºÎµ¿¼Ò¼öÁ¡À» Áö¿øÇÕ´Ï´Ù.
Integerº¸´Ù ÈξÀ ´õ Å« ¼ö¸¦ Áö¿øÇϴ ŸÀÔÀÌ´Ù.- 2,147,483,648~2,147,483,647(2ÀÇ 31½Â - 1)»çÀÌÀÇ Á¤¼ö.
-3.402823E38 ~ -1.401298E-45 ±îÁöÀÇ À½¼ö, ±×¸®°í 1.401298E-45 ~ 3.402823E38 ±îÁöÀÇ ¾ç¼ö ´ÜÁ¤µµ ºÎµ¿¼Ò¼öÁ¡À» Áö¿øÇϴ ŸÀÔÀÌ´Ù. 9. Cstr()
|