Convert.ToDoubl e Method Converts a specified value to a
double-precision floating point number.
This is .Net frame work class library. No need of separate
Intallation. At Framework SDK documentation you will get
the details regarding other Convert methods.
[color=blue]
>-----Original Message-----
>I am just starting to use asp.net and I do not have the
>ToDecimal function. Do I have to install a library to
>get it?
>.
>[/color]
"John" <john_fam@hotma il.com> wrote[color=blue]
> I am just starting to use asp.net and I do not have the
> ToDecimal function. Do I have to install a library to
> get it?
>[/color]
John,
You can convert to a double by either using the Double's Parse method
or VB.NET's CType (or C# Convert).
Dim s1 As String = "1.1"
Dim d1 As Double = Double.Parse(s1 )
Dim d2 As Double = CType(s1, Double)
"Carl Prothman [MVP]" <carlpr@spamcop .net> wrote in message
news:%23CMMNE9W DHA.1900@TK2MSF TNGP10.phx.gbl. ..[color=blue]
> "John" <john_fam@hotma il.com> wrote[color=green]
> > I am just starting to use asp.net and I do not have the
> > ToDecimal function. Do I have to install a library to
> > get it?
> >[/color]
>
> John,
> You can convert to a double by either using the Double's Parse[/color]
method[color=blue]
> or VB.NET's CType (or C# Convert).
>
> Dim s1 As String = "1.1"
> Dim d1 As Double = Double.Parse(s1 )
> Dim d2 As Double = CType(s1, Double)
>
> --
>
> Thanks,
> Carl Prothman
> Microsoft ASP.NET MVP
> http://www.able-consulting.com[/color]
I think Carl forgot that you were talking about Decimal. Everything
he said about Double will also work for Decimal. (
CarlsMessage.Re place("Double", "Decimal") should take care of it
<grin>)
> I think Carl forgot that you were talking about Decimal. Everything[color=blue]
> he said about Double will also work for Decimal. (
> CarlsMessage.Re place("Double", "Decimal") should take care of it
> <grin>)
>[/color]
Comment