Home > OS >  Trying to use math function: sgn... error : sgn is not declared
Trying to use math function: sgn... error : sgn is not declared

Time:04-25

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

CodePudding user response:

Missing the character "i"

That particular Math function is named sign.

Thus sgn, being user defined, misses its declaration.

CodePudding user response:

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.

  • Related