How do you cut off a Double variable after say 2 digits?
Type: Posts; User: Chobo
How do you cut off a Double variable after say 2 digits?
Everything is fine until:
x = r * Math::Cos(rad);
y = r * Math::Sin(rad);
Where it works except when rad is say PI..
Hi, thanks for all the answers.. one more question
if ( choice == __wchar_t('A'))
{
Console::Write( S"R: ");
r = Double::Parse( Console::ReadLine());
Console::Write( S"Degrees:...
What does it mean when it says unreferenced local variable, (A and B)?
Nevermind it works. Thanks!
Thanks for the help but, inputting A still doesn't bring up thing.
This is C++ with .net
How do I fix this? I don't know how to convert inputted choice to equal the If statement.
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
int _tmain()