当前位置:网站首页>C # conversion of basic data types for entry
C # conversion of basic data types for entry
2022-07-27 00:52:00 【Jinan medical applet champion】
Main function call
using System;
namespace _213 Type conversion
{
class Program
{
static void Main(string[] args)
{
double dNumber = 23.15; // The default is double Floating point type variables
string strNumber = Convert.ToString(dNumber); // Convert to string
Console.WriteLine(" Convert floating-point type to string data type :" + strNumber);
double dDemoobj = 11.22;
int Demoobj = (int)dDemoobj;
Console.WriteLine(" Convert floating-point type to integer data type :"+Demoobj);
// Type converted 2 Methods
//(1)Parse() Method : about string Types are mutually compatible data types , take string Type is converted to any basic type : Basic grammar : Basic data type .Parse( Value of string type to be converted );
string objdemo = "123222";
int num = int.Parse(objdemo);
int num2 = num - 111;
Console.WriteLine(" After subtracting the converted data value :"+num2);
//(2)Convert(ÿ边栏推荐
猜你喜欢
![[qt] container class, iterator, foreach keyword](/img/88/d9d5be096009b4e5baa0966e6f292c.jpg)
[qt] container class, iterator, foreach keyword
![[CISCN2019 华北赛区 Day1 Web2]ikun](/img/80/53f8253a80a80931ff56f4e684839e.png)
[CISCN2019 华北赛区 Day1 Web2]ikun
Alibaba internal "shutter" core advanced notes~
![[RootersCTF2019]I_<3_Flask](/img/69/1c77e45e939cf86bb75be8a6c42574.png)
[RootersCTF2019]I_<3_Flask
![[Network Research Institute] attackers scan 1.6 million WordPress websites to find vulnerable plug-ins](/img/91/4d6e7d46599a67e3d7c73afb375abd.png)
[Network Research Institute] attackers scan 1.6 million WordPress websites to find vulnerable plug-ins

2020-12-20 99 multiplication table

Checked status in El checkbox 2021-08-02

JSCORE day_ 03(7.4)

Application of encoding in XSS
![[ciscn2019 finals Day2 web1]easyweb](/img/36/1ca4b6cae4e0dda0916b511d4bcd9f.png)
[ciscn2019 finals Day2 web1]easyweb
随机推荐
当事务遇上分布式锁
[4.7 Gauss elimination details]
DOM day_04(7.12)BOM、打开新页面(延迟打开)、地址栏操作、浏览器信息读取、历史操作
ES6中的export和import
Use of postman
2022.7.16DAY606
[NCTF2019]SQLi
2022.7.14DAY605
2022.7.10DAY602
Alibaba internal "shutter" core advanced notes~
[watevrCTF-2019]Cookie Store
Ah ah ah ah ah a
07 - 日志服务器的搭建与攻击
DOM day_03(7.11) 事件冒泡机制、事件委托、待办事项、阻止默认事件、鼠标坐标、页面滚动事件、创建DOM元素、DOM封装操作
箭头函数详解 2021-04-30
Promise basic usage 20211130
select查询题目练习
[问题]yum资源被占用怎么办
The detailed process of reinstalling AutoCAD after uninstallation and deleting the registry
Apply with new, delete and malloc, free to free the heap space