百分比计算 [英] Percentage calculation

查看:208
本文介绍了百分比计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在进度条的概念在工作ASP.NET MVC 2。在这里,我有10个值一个DropDownList。我想计算进度条,例如百分比从DropDownList的10个值,我有一个查询返回值2左右,出10个值我得到220%完成的应显示。如何做到这一点的计算

I am working in progress bar concept in ASP.NET MVC 2. Here i have a DropDownList which has 10 values. i want to calculate the percentage for progress bar, e.g. 10 values from DropDownList and i am having a query which returns the value 2. so, out of 10 values i am getting 2. "20 % completed" should be displayed.. How to do this calculation

推荐答案

(电流/最大)* 100 。在你的情况,(2/10)* 100

这篇关于百分比计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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