选择最小负值 [英] Choose minimum negative value
本文介绍了选择最小负值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法从不同的文本框中选择最小负值.请帮帮我.
i couldnot get idea to choose minimum negative value from diferent textbox.please help me out.
推荐答案
从不同的文本框中读取值并使用int解析它们.尝试解析以确保该值是一个数字-对于那些是数字的值,只需将它们进行比较,然后使用一个临时的minimumValue变量来保存最小值.
Read the values from the different textboxes and parse them using int.TryParse to make sure that the value is a number - for those values that are numbers, just compare them and use a temporary minimumValue variable to hold the minimum value.
这篇关于选择最小负值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文