Jump to content

Samuel Oliveira

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Samuel Oliveira

  • Rank
    Newbie
  1. Hello When i press f12 there is all the website code on display. Is there a way to protect a website code in html, css and javascript from being copied? Waiting for your help.
  2. In this program it happens that when i calculate volt (V) it works fine, But when i want to calculate ohm ® in the equation bellow nothing happens. I also want another equation for calculate ampere (I) in the same file. Hope you could help me here is the code: <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="ohmslaw.css"> <meta charset="utf-8" /> <title>Ohm's law</title> </head> <body> <h1>Ohm's Law Calculator</h1> <form action="" id="voltform"> <fieldset>
  3. It doesn't work I also tried to put "volt.toFixed(6)" and nothing. it shows the same.
  4. Musicman, where do i place this code that you adviced me, on my program?
  5. I managed to understand some things, but when i try to multiply 9.999 * 9.999 it gives 99.98000100000002, when it should be 99.980001, this case and any number should be precise. What's wrong in the program? Here is the code: <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="ohmslaw.css"> <meta charset="utf-8" /> <title>Ohm's law</title> </head> <body> <h1>Ohm's Law Calculator</h1> <form action="" id="volt"> <fieldset> <legend>V=R*I</legend> <p>
  6. And yes, you can put exponents in Ohm's law
  7. When i put positive exponent it works, but in negative i doesn't. and also when put numbers like 3 * 0.4 it presents a number not so accurate like this 1.2000000000000002, instead it should be 1.2 here is the full code: <h1>Ohm's Law Calculator</h1> <form id="ohmslaw" action=""> <fieldset> <legend>V=R*I</legend> <p> <label for="ohm">Ohm ®</label> <input type="number" name="ohm" step="0.1" min="0" /> <label for="ampere">Ampere (I)</label> <input type="number" name="amper
  8. I have a doubt in how to put in negative exponent. Here is the code: fieldset> <legend>V=R*I</legend> <p> <label for="ohm">Ohm ®</label> <input type="number" name="ohm" step="0.1" min="0" /> <label for="ampere">Ampere (I)</label> <input type="number" name="ampere" step="0.1" min="0"/> </p> <p> <input type="submit" value="Calculate" /> or <input type="reset" value="Reset" /> </p> <p> <label for="volt">V
  9. Another question is, how do i put in decimals?
  10. Hello, I need help in how to make a formula displayed in a html page, just by inserting the numbers and calculate it. A simple formula example like the ohm's law should help me help to understand it. What steps do i need to do? Hope you could help me Samuel
×
×
  • Create New...