尝试使用数学功能:SGN ...错误:未声明SGN

发布于 2025-01-22 06:59:25 字数 217 浏览 2 评论 0原文

嗯...

我导入:system.math ...

test as integer=sgn(100)

我得到错误: sgn未声明。

其他数学功能可行。

那为什么呢?

Visual Studio是否无法正确安装?

谢谢你们! 令人沮丧的:jhonny q

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我不咬妳我踢妳 2025-01-29 06:59:25

缺少字符“ i”

该特定 Math 函数被命名为 sign

因此,sgn是用户定义的,错过了其声明。

Missing the character "i"

That particular Math function is named sign.

Thus sgn, being user defined, misses its declaration.

芸娘子的小脾气 2025-01-29 06:59:25

感谢您的回复; 9月罗兰。

仅此一项仍然让我一个:没有宣布。

有效的是:Math.sign。 ,或执行A:Imports System.math。

然后签名也有效。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文