获得双倍价值 [英] get double value
本文介绍了获得双倍价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
You could use one of these regular expressions
format: #.## this works for a double that is of the format you gave as an example
Regex myDouble = new Regex("[1-9].[0-9][0-9]");
format: #.# this expression works for any double.
Regex myDouble = new Regex("[1-9]*.[0-9]*");
这篇关于获得双倍价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文