Error

 Previous Topic Next Topic
 jtm2020hyo #1 Posted : 06 April 2021 13:43:38(UTC) Rank: NewbieGroups: Registered Joined: 04/04/2021(UTC)Posts: 9Was thanked: 1 time(s) in 1 post(s) how can I do an arithmetic operation using a different base to 10?I did not find anything related to this anywhere.
 Wanna join the discussion?! Login to your SMath Studio Forum forum accountor Register a new forum account.
 Jean Giraud #2 Posted : 06 April 2021 15:32:41(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,254Was thanked: 825 time(s) in 656 post(s) Originally Posted by: jtm2020hyo how can I do an arithmetic operation using a different base to 10 ?Can you be more specific with an example ?
 jtm2020hyo #3 Posted : 06 April 2021 16:01:46(UTC) Rank: NewbieGroups: Registered Joined: 04/04/2021(UTC)Posts: 9Was thanked: 1 time(s) in 1 post(s) For example, for binaries:2 in base 10 = 22 in base 2 = 10 ( base 2)2 in base + 2 in base 2 = 100 (base 2)4 in base 10 = 100 in base 2Base is wrote like a number subscripted
 overlord #4 Posted : 06 April 2021 16:10:01(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 252Was thanked: 69 time(s) in 50 post(s) Originally Posted by: jtm2020hyo For example, for binaries:2 in base 10 = 22 in base 2 = 10 ( base 2)2 in base + 2 in base 2 = 100 (base 2)4 in base 10 = 100 in base 2Base is wrote like a number subscripted If I am not mistaken, there are no such base arithmetic functions under SMath.You can write your own functions under SMath, but I guess it would take a lot of time.Hmm, maybe this is a nice idea to write a plugin about.I could do that as a side project in my spare times.No promises here.Regards.Edited by user 06 April 2021 16:11:56(UTC)  | Reason: Not specified
 Jean Giraud #5 Posted : 06 April 2021 17:59:46(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,254Was thanked: 825 time(s) in 656 post(s) Originally Posted by: jtm2020hyo how can I do an arithmetic operation using a different base to 10 ?I don't understand, simply.I you have a parametric function from source f(a,b,c,x)parameters [a,b,c] given from source as decimal,why would you convert in another base than decimal ?However, you can shrink/expand the variate 'x' as you wish.
 Razonar #6 Posted : 06 April 2021 20:07:51(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 687Was thanked: 355 time(s) in 231 post(s) Originally Posted by: jtm2020hyo how can I do an arithmetic operation using a different base to 10?I did not find anything related to this anywhere.Hi. Try this one: https://en.smath.com/for...nversions.aspx#post60016Or this other: https://en.smath.com/for...12_String-utilities.aspxBest regards.Alvaro.
 Users browsing this topic
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.