Hi,
i have a division of 2 integer that give me a result as
2,3944534 ...
how i can give e result as
2,3 ???

please help me!

Recommended Answers

All 3 Replies

Can you maybe provide some more information about what it is you are trying to do?

>division of 2 integer

Use \ integer division operator.

and so,
i have a division, beetween 2 integer,
i need that the result number has only max 1 number after comma,
how?

and so,
i have a division, beetween 2 integer,
i need that the result number has only max 1 number after comma,
how?

Look into Math.Round if you want to keep the value as numeric or number.ToString(format) if the result can be a string.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.