|
|
Q: if we want to truncate (rather than round) a float to a specified number of digits, how can we do so? Palooka answer: Exactly as @lastchance wrote x = (int)( 100 * x ) / 100.0; and as he demonstrated by 'upping' the precision you are well within the 14 or so significant digits represented by a double. |
Why don't you mind your own business. You don't know how hurtful your and Borges comments are. I have done nothing here to be anything but constructive and despicable characters like you and him and a few others can't bear it. You are a bully and one day will cause a great deal of harm to someone. You might even kill someone. You should be ashamed of yourself taking sides and self righteously taking sides and ganging up. You are a disgrace as human being. Shame on you. I dare you to behave like a human instead of being a gutless parasite. Shame on you. You horrible person who has no insight into the consequences of your venomous and cowardly smug behaviour. |
Sociopaths always scurry for cover when they're exposed. |
No they don't. |
|
|