需要VB.NET代码功能 [英] Need VB.NET codes function

查看:86
本文介绍了需要VB.NET代码功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要Vb.net功能表格代码:



问题:Z =(XY)* 4秒



X& Y值是

& O / p Z值必须是时间形式



我尝试过:



在vb.net中需要函数以形成编码格式

Need Vb.net function form code :

Problem : Z= (X-Y)*4 Sec

X & Y value is the degree
& O/p Z value must be in Time form

What I have tried:

Need function in vb.net to form coding format

推荐答案

通常的路线是

  • 转换(代表)使用合适单位的所有值(在您的情况下第二 s)。
  • 执行计算
  • 代表结果是请求的格式。
The usual route is
  • Convert (represent) all the values using a suitable unit (seconds in your case).
  • Perform the computation
  • Represent the result in the requested format.


我们非常愿意帮助那些陷入困境的人:但这并不意味着我们来这里做全都是你的!我们不能做所有的工作,你要么得到报酬,要么是你的成绩的一部分,我们为你做这一切都不公平。



所以我们需要你做这项工作,当你遇到困难时我们会帮助你。这并不意味着我们会为您提供一步一步的解决方案!

首先解释您目前的位置,以及流程的下一步是什么。然后告诉我们你试图让下一步工作,以及你做了什么。
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.


Quote:

问题:Z =(XY)* 4秒

X& Y值是

& O / p Z值必须是时间形式

Problem : Z= (X-Y)*4 Sec
X & Y value is the degree
& O/p Z value must be in Time form



你没有选择,因为运算符是十进制的,你必须转换X& Y到十进制,做数学,然后将Z转换为度。


You have no choice, since operators are decimal, you have to convert X & Y to decimal, do math, and then convert Z to degrees.

引用:

将36.160秒转换为00.38。 40

convert 36.160 sec as 00.38.40



你怎么知道36.160不是36.16或36.1600?


How do you know that 36.160 is not 36.16 or 36.1600 ?


这篇关于需要VB.NET代码功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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