我不明白 [英] I don't understand
问题描述
这究竟是什么意思?
double percentdecrease =(Beginning Pop - Ending Pop)/ Beginning Pop
lblPercentDecrease.Text = percentdecrease.ToString("P");
double percentdecrease =(Beginning Pop - Ending Pop)/ Beginning Pop
定义变量"percentdecrease" as (Popning Pop - Ending Pop)/ Beginning Pop。
开始Pop,Ending Pop都是变量(Double integer)
所以如果开始Pop = 7并结束pop = 4然后百分比减少= 0.428571428
lblPercentDecrease.Text = percentdecrease.ToString("P");
//为百分比
文本框的标签"百分比减少"将是 0.428571428。
但百分比减少是一个整数,并且要将它放在文本框中,它必须首先是转换为字符串。
我希望这很清楚。如果没有让我知道或许我可以进一步混淆你:) < span style ="color:#1f497d; font-family:Calibri,sans-serif; font-size:14.6667px">
What does this mean exactly?
double percentdecrease = (Beginning Pop – Ending Pop) / Beginning Pop
lblPercentDecrease.Text = percentdecrease.ToString("P");
double percentdecrease = (Beginning Pop – Ending Pop) / Beginning Pop
Defines the variable "percentdecrease" as (Beginning Pop – Ending Pop) / Beginning Pop.
begining Pop, Ending Pop are all variables (Double integers)
so if Begining Pop = 7 and ending pop = 4 then percentdecrease = 0.428571428
lblPercentDecrease.Text = percentdecrease.ToString("P");
// for percent the label for textbox "percentdecrease" will be 0.428571428.
However percentdecrease is an integer and to beable to place it within a textbox it must first be converted to a string.
I hope this is clear enough. If not let me know perhaps I can confuse you further :)
这篇关于我不明白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!