LINUX LITE 7.4 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get absolute value of integer? abs command does not work, man pages exist
#3
Thanks [member=7701]kpanic[/member] , your solution worked well. Last night I did a clunkier workaround, where I tested if the number was less than zero, and if so, I subtracted the number from zero. But your solution with sed looks like it's a lot faster. It worked beautifully when I tested it today. Marking as solved.
Using Linux Lite for everything now. I put it on my desktop and my laptop. Woohoo!
Reply


Messages In This Thread
Re: How to get absolute value of integer? abs command does not work, man pages exist - by Vera - 07-28-2018, 05:32 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)