½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > JAVASCRIPT > javascript ¼Ò½ºÃ¢°í > °è»ê±â > µå·¡±× °¡´ÉÇÑ ±ò²ûÇÑ °è»ê±â »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
µå·¡±× °¡´ÉÇÑ ±ò²ûÇÑ °è»ê±â
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù °è»ê±â
´Ù¿î·Îµå Ƚ¼ö 1410 ȸ
°£´Ü¼³¸í ÀüÀÚ°è»ê±â¸¦ ¸¶¿ì½º·Î µå·¡±×ÇÒ¼öÀÖ½À´Ï´Ù. µðÀÚÀεµ ±ò²ûÇÏ°í ¼¼·Ã
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

Àڹٷθ¸µç ÀüÀÚ°è»ê±â

1. ±âº»ÀûÀÎ ÀüÀÚ °è»ê±â ±â´ÉÀÌ °¤ÃçÁ®ÀÖ½À´Ï´Ù.

2. ¹ÝÅõ¸í¿¡ ±ò²ûÇÑ µðÀÚÀÎÀÌ ¿©´À À¥»çÀÌÆ®¿¡ ºÙ¿©³öµµ ¼Õ»öÀÌ ¾ø½À´Ï´Ù.

3. ¸¶¿ì½º·Î µå·¡±× ½ÃÄѼ­ À̵¿½Ãų¼öÀÖ½À´Ï´Ù. ·¹À̾ƿô»ó ¾î´À À§Ä¡¿¡ ºÙ¿©µµ ±¦Âú½À´Ï´Ù.

 

¾Æ·¡´Â º»¹®½ºÅ©¸³Æ®ÀÔ´Ï´Ù.

<HTML>
<HEAD>
    <TITLE>ÇØÇÇCGI</title>

<style type="text/css">
<!--
#demo {
    margin:50px;
}
#calculator {
    filter:alpha(opacity=85);
    -moz-opacity:.85;
    opacity:.85;
}
.drag
{
    position:relative;
    cursor:hand
}
#calculator
{
    background-color:#F4F4F4;
    cursor:move;
    width:190px;
}
.calculatorcontainer
{
    padding:5px;
    border-top:1px solid #C0C0C0;
    border-left:1px solid #C0C0C0;
    border-right:2px outset #C0C0C0;
    border-bottom:2px outset #C0C0C0;
}
#calculator #control
{
    text-align:right;
}
#calculator input
{
    width:40px;
    height:30px;
    margin:2px;
    background-color:#FFF;
    font-family:verdana,arial,helvetica,sans-serif;
    font-size:0.95em;
    border:1px solid #C0C0C0;
    cursor:hand;
    cursor:pointer;
}
#calculator img
{
    border:0;
}
#calculator #result
{
    width:173px;
    font-size:1.3em;
    padding:3px;
    cursor:text;
}
#calculator .operation
{
    color:#999;
    font-weight:bold;
    background-color:#DDD;
}
#calculator .equals
{
    color:#FFF;
    font-weight:bold;
    background-color:#336699;
}
#version
{
    float:left;
    padding:2px 0px 0px 2px;
    font-size:0.65em;
}
#version a
{
    color:#333;
    cursor:move;
    text-decoration:none;
}

-->
</style>

<script type="text/javascript">
<!--
var calculation = "";
var resultDone = false;

function addToCalc(val) {
  if(isNaN(val) && isNaN(calculation.substring(calculation.length-1, calculation.length)))
    return false;

  if(!isNaN(val) && resultDone) {
    resetCalc();
    resultDone = false;
  } else if(isNaN(val) && resultDone) {
    resultDone = false;
  }
  calculation += val;
  showResult();
}

function addToCalcDirect(val) {
  calculation = val;
}

function resetCalc() {
  calculation = "";
  showResult();
}

function positiveNegative() {
  if(calculation.substring(0, 1) == "-")
    calculation = calculation.substring(1, calculation.length);
  else
    calculation = "-" + calculation;
  showResult();
}

function calculate() {
  if(calculation != "") {
    try {
      calculation = eval(calculation);
    } catch(e) {
      reportError("Error!");
    }
    resultDone = true;
    showResult();
  }
  else
    return false;
}

function percentage() {
  try {
    calculation = eval(calculation) / 100;
  } catch(e) {
    reportError("Error!");
  }
  resultDone = true;
  showResult();
}

function squareRoot()
{
  try {
    calculation = Math.sqrt(eval(calculation));
  } catch(e) {
    reportError("Error!");
  }
  resultDone = true;
  showResult();
}

function showResult() {
  calculation = calculation.toString();
  if(calculation == "NaN") {
    reportError("Error!");
  } else {
    document.getElementById("result").value = calculation;
  }
}

function reportError(msg) {
  calculation = msg;
  document.getElementById("result").value = msg;
}

function closeCalculator() {
  document.getElementById("calculator").style.display = "none";
}

function about() {
  msg = "CJ Floating Calculator\n=============\n\n";
  msg += "Developed by James Crooke\nhttp://www.cj-design.com";
  alert(msg);
}

var ie = document.all;
var ns6 = document.getElementById && !document.all;
var dragapproved=false;
var z, x, y;

function move(e) {
  if (dragapproved) {
    z.style.left=ns6? temp1+e.clientX-x: temp1+event.clientX-x;
    z.style.top=ns6? temp2+e.clientY-y : temp2+event.clientY-y;
    return false;
  }
}

function drags(e) {
  if (!ie&&!ns6)
  return;
  var firedobj = ns6? e.target : event.srcElement;
  var topelement = ns6? "HTML" : "BODY";
  while (firedobj.tagName != topelement&&firedobj.className != "drag") {
    firedobj = ns6? firedobj.parentNode : firedobj.parentElement;
  }
  if (firedobj.className == "drag") {
    dragapproved = true;
    z = firedobj;
    temp1 = parseInt(z.style.left+0);
    temp2 = parseInt(z.style.top+0);
    x = ns6? e.clientX: event.clientX;
    y = ns6? e.clientY: event.clientY;
    document.onmousemove=move;
    return false;
  }
}
document.onmousedown=drags;
document.onmouseup=new Function("dragapproved=false");
// -->
</script>
</HEAD>

<BODY>
ÀüÀÚ°è»ê±â¸¦ µå·¡±× ÇÒ ¼ö ÀÖ½À´Ï´Ù.
<div id="demo">
  <form onsubmit="calculate(); return false;">
  <div id="calculator" class="drag">
    <div class="calculatorcontainer">
      <div id="control"><a href="#" onclick="closeCalculator();return false"><img src="http://www.blueb.co.kr/SRC/javascript/image4/close1.gif" style="position:relative;top:-1px"/></a></div>
      <input type="text" name="input" size="16" id="result" onclick="this.focus()" onkeyup="addToCalcDirect(this.value)"><br />
      <input type="button" value="1" onclick="addToCalc(this.value)"><input type="button" value="2" onclick="addToCalc(this.value)"><input type="button" value="3" onclick="addToCalc(this.value)"><input type="button" value="+" onclick="addToCalc(this.value)" class="operation"><br />
      <input type="button" value="4" onclick="addToCalc(this.value)"><input type="button" value="5" onclick="addToCalc(this.value)"><input type="button" value="6" onclick="addToCalc(this.value)"><input type="button" value="-" onclick="addToCalc(this.value)" class="operation"><br />
      <input type="button" value="7" onclick="addToCalc(this.value)"><input type="button" value="8" onclick="addToCalc(this.value)"><input type="button" value="9" onclick="addToCalc(this.value)"><input type="button" value="*" onclick="addToCalc(this.value)" class="operation"><br />
      <input type="button" value="+/-" onclick="positiveNegative()" class="operation"><input type="button" value="0" onclick="addToCalc(this.value)"><input type="button" value="." onclick="addToCalc(this.value)" class="operation"><input type="button" value="/" onclick="addToCalc(this.value)" class="operation"><br />
      <input type="button" value="sqrt" onclick="squareRoot()" class="operation"><input type="button" value="%" onclick="percentage()" class="operation"><input type="button" value="c" onclick="resetCalc()" class="operation"><input type="button" value="=" onclick="calculate()" class="equals">
    </div>
  </div>
  </form>
</div>


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
1-0.9=0.09999999999999998
2008-12-30 15:35:01
howsoft
Âù¼º 54
¹Ý´ë 57
µ¥¸ð¿¡¼­ .. 5-4.9 ¸¦ Çϸé 0.09999999999999964 ¶ó°í ³ª¿À³×¿ä.
¼Ò¼ýÁ¡ °è»ê¿¡¼­ ¿¡·¯°¡ ÀÖ´Â °Í °°½À´Ï´Ù.
2008-12-30 15:33:54
howsoft
Âù¼º 64
¹Ý´ë 57
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 21974625 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.