In Android how can I change a value to a negative number?
If I have the following code and have entered 10 for pos1_deg, how can I easily change this to -10 using a radio button?
Is the answer to concatenate a string such as pos1_deg = "-" + pos1_deg? Or is there some mathematical command I can use?
pos1_deg =(EditText)findViewById(R.id.sat1posdeg);
pos1_deg.setInputType(InputType.TYPE_CLASS_NUMBER|InputType.TYPE_NUMBER_FLAG_DECIMAL);
Many thanks for any help
Multiply
pos1_degby-1: