社区
C#
帖子详情
急问:如何将string转成double?
royantar
2003-07-25 11:31:14
如何将字符串类型的3.085729264E19转换成double类型?
...全文
364
5
打赏
收藏
急问:如何将string转成double?
如何将字符串类型的3.085729264E19转换成double类型?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
5 条
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
打赏红包
royantar
2003-07-25
打赏
举报
回复
谢谢,结帖
ls_hndd
2003-07-25
打赏
举报
回复
VB.net:
Dim dbl As Double = CType(3.085729264E+19, Double)
雪狼1234567
2003-07-25
打赏
举报
回复
System.Convert.ToDouble();
参见如下代码:
double i =System.Convert.ToDouble("3.085729264E19");
double m =i*2;
this.textBox1.Text = m.ToString();
孟子E章
2003-07-25
打赏
举报
回复
Convert.ToDouble("3.085729264E19")
saucer
2003-07-25
打赏
举报
回复
string s = "...";
double d = System.Convert.ToDouble(s)
d = System.Double.Parse(s);
you can also use System.Double.TryParse(...):
using System.Globalization;
bool isNum = Double.TryParse(s, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out d );
相关推荐
Java date转换float_java中数据类型转换 Integer
String
Long Float
Double
Date
1如何将字串
String
转换成整数int?A.有两个方法:1).inti=Integer.parseInt([
String
]);或i=Integer.parseInt([
String
],[intradix]);2).inti=Integer.valueOf(my_str).intValue();注:字串
转成
Double
,Float,Long的方法大同小异.2如何将整数int转换成...
Java当中的常用的类型转换
1、如何将整数int转换成字符串
String
使用
String
.valueOf或者Integer.to
String
int a = 100;
String
s1 =
String
.valueOf(a);
String
s2 = Integer.to
String
(a); 注:
Double
、Float、Long
转成
字符串的方法大同小异 2、如何将字符串
String
转换成整数int、float、
double
? Integer.parseInt(s)或者Integer.valueOf(s).intValue()
java integer转float_java中数据类型转换 Integer
String
Long Float
Double
Date
1如何将字串
String
转换成整数int?A.有两个方法:1).inti=Integer.parseInt([
String
]);或i=Integer.parseInt([
String
],[intradix]);2).inti=Integer.valueOf(my_str).intValue();注:字串
转成
Double
,Float,Long的方法大同小异.2如何将整数int转换成...
技术点1
1 如何将字串
String
转换成整数 int? 1). int i = Integer.parseInt([
String
]); 2). inti = Integer.parseInt([
String
],[int radix]); 注: 字串
转成
Double
, Float, Long 的方法大同小异. 2如何将整数 int 转换成字串
String
? ...
如何将整数int转换成字符串
String
?
如何将整数int转换成字符串
String
? 答:有三种方法: 1)
String
s =
String
.valueOf(i); 2)
String
s = Integer.to
String
(i); 3)
String
s = "" + i; 注:
Double
, Float, Long
转成
字串的方法大同小异。
发帖
C#
C#
.NET技术 C#
复制链接
扫一扫
10.8w+
社区成员
64.2w+
社区内容
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
帖子事件
创建了帖子
2003-07-25 11:31
社区公告
让您成为最强悍的C#开发者