'Trying to use math function: sgn... error : sgn is not declared
hmm...
I imported:System.math...
test as integer=sgn(100)
I get the error: sgn is not declared.
Other math functions work.
So Why?
Might Visual Studio not be correctly installed?
Thank Yall! flabbergasted: Jhonny Q
Solution 1:[1]
Missing the character "i"
That particular Math function is named sign
.
Thus sgn
, being user defined, misses its declaration.
Solution 2:[2]
Thanks for you response; Sep Roland.
That alone still gets me a: is not declared.
What works is: Math.Sign. ,or do a: Imports System.Math.
Then sign works also.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sep Roland |
Solution 2 | Jhonny Q |