MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / changeSign

Function changeSign

assets/js/Sci_Cal.js:41–46  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

39}
40
41function changeSign(input) {
42 if(input.value.substring(0, 1) == "-")
43 input.value = input.value.substring(1, input.value.length)
44 else
45 input.value = "-" + input.value
46}
47
48function compute(form) {
49

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected