A Andreas Klemt Jul 28, 2003 #1 Hello, how can I change the sign of an Integer Value like Abs?(100) -> -100 Thanks, Andreas
K Karl Seguin Jul 28, 2003 #2 multiple by -1 will always toggle the sign... -1 * 40 = -40 -1 * -40 = 40 abs() will always make something positive abs(40) = 40 abs(-40) = 40 abs() * -1 will always make it negative abs(40) * -1 = -40 abs(-40) * -1 = 40 (abs is defined in system.math) karl
multiple by -1 will always toggle the sign... -1 * 40 = -40 -1 * -40 = 40 abs() will always make something positive abs(40) = 40 abs(-40) = 40 abs() * -1 will always make it negative abs(40) * -1 = -40 abs(-40) * -1 = 40 (abs is defined in system.math) karl