How to check a given string is float-point in (c#) ?thanx
From: zjut (zjut_at_discussions.microsoft.com)
Date: 01/06/05
- Next message: gal20: "create toolbar"
- Previous message: David: "Re: retrieve xmlnode value in XmlDocument"
- Next in thread: Anders Norås [MCAD]: "Re: How to check a given string is float-point in (c#) ?thanx"
- Reply: Anders Norås [MCAD]: "Re: How to check a given string is float-point in (c#) ?thanx"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 5 Jan 2005 19:27:01 -0800
I need to implement the method : round(String name, int index)
The given string maybe the every type of float type, ( the msdn given the
regax is that :
[ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws])
and the index is the location after "." in name.
First, i should check the given name is a valid float-point, and then,
to check the number in name in index locaion is > 0 or not?
eg:
round(123.45612, 2) is that the "5" is > 0 .
I indeed need your help , can you give me some coder or some advice .
appreciate very much.
- Next message: gal20: "create toolbar"
- Previous message: David: "Re: retrieve xmlnode value in XmlDocument"
- Next in thread: Anders Norås [MCAD]: "Re: How to check a given string is float-point in (c#) ?thanx"
- Reply: Anders Norås [MCAD]: "Re: How to check a given string is float-point in (c#) ?thanx"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|