嗨,Guyz,我如何在VB 2008中使用数学课程? [英] Hi guyz, how do i use math class in vb 2008?

查看:91
本文介绍了嗨,Guyz,我如何在VB 2008中使用数学课程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个计算器项目,我完成了,但是剩下的就是,如果用户想检查一个数字的绝对值,我可以做吗?
我尽了最大的努力以便将数学类用于ABS,但是这个消息很糟糕,所以我需要您的帮助.

i''m doing a calculator project and i finish but thing remain is, can i do if a user want to check the absolute value of a number?
I tried my all best in order to use math class for abs but the news is bad so i need your help bye.

推荐答案

如果您不能解决问题,如何使用类,属性或方法,首先要做的是尝试MSDN:
Google:"MSDN Math.Abs​​" [ ^ ]
您想要的结果通常位于顶部或顶部:
MSDN: Math.Abs​​方法 [ Math.Abs​​(Double) [ ^ ]
这有一个很好的描述,甚至是一个例子!
If you can''t work out how to use a class, or a property, or a method, the first thing to do is try MSDN:
Google: "MSDN Math.Abs"[^]
The result you want is normally near or at the top:
MSDN: Math.Abs Method[^]
This shows the various overloads, so pick the appropriate one: Math.Abs(Double)[^]
This has a good description, and even an example!
Dim absoluteValue As Double = Math.Abs(1234.7123)


这篇关于嗨,Guyz,我如何在VB 2008中使用数学课程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆