Asp.net中的全球化 [英] Globalization in Asp.net

查看:95
本文介绍了Asp.net中的全球化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个双打值
我正在分配这些值

I have two doubles value
i am assigning those values

Double planned,convert_hours,total;
planned=0.125;
convert_hours=1.525;
total=planned+convert_hours;




但是它接受的值是0,125和1,525,而不是0.125和1.525

我认为这是因为全球化问题.

如果是,请帮助我解决此问题.




But its accepting values like 0,125 and 1,525 instead of 0.125 and 1.525

I think its because of globalisation problem..

IF yes,please help me to resolve this

推荐答案

检查PC上的区域设置属性.如果您的数字设置以此为重点,那么您将需要在SQL中实现一些逻辑以进行区域性转换.
Check the regional settings property on your PC. If your number settings use, as the point, then you will need to implement some logic in SQL for culture conversion.


这篇关于Asp.net中的全球化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆