When I do this math below, I do not receive the decimal point.
string test = (2456 / 1000).To.String();
I get 2 instead of 2.456. How can I fix this issue. The answer suppose to be 2.456. Can someone assist me.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Nilesh ShahRank #42 · 34.2K reputationPosted Nov 16, 2017, 8:52 AM EST
Nilesh ShahRank #42 · 34.2K reputationPosted Nov 16, 2017, 9:06 AM EST
David SmithRank #999 · 2K reputationPosted Nov 16, 2017, 8:58 AM EST