TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pavan Bujji
NA
207
36.5k
how to store a decimal value in c# ?.
Sep 20 2017 5:02 AM
Hi frnds,
how to store the decimal value in c# ?.
for ex:
Var1=50
var2=3000
if i do the divison like below
(50/3000)
actually it returns 0.01666.
my code is : decimal percentage= (decimal)(var1/var2);
but it returns '0' only. But i want to store 0.01666 atleast 0.016.
How can I ?.
Thanks & Regards,
Pavan G.
Reply
Answers (
1
)
How to add css in .cshtml file
What is the best way to increment a transaction number