forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Mathematic functions

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 140

PostPosted: Sat May 07, 2022 2:04 am    Post subject: Mathematic functions Reply with quote

Hi. Im trying to replace some excell formullas with a VDS Script.
ie: I found num^2 and i can replace it with @prod(num,num)
But i found num^10 and i can't find a function to do that...

Is there any whay to do it without having to repeat the multiplication 10 times?

Thanks a lot in advance
Back to top
View user's profile Send private message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Sat May 07, 2022 11:47 am    Post subject: Reply with quote

Hi Marcelo

How long without knowing about you!!! Very Happy

In VDS 6 I wonder if it will be possible to use Google calculation. It could capture the results of the web code, perhaps Rolleyes

Mathematically it could be done like this:
Code:
option decimalsep,.
      
  # 2^3 Result must be 8
  %%Base = 2
  %%Exponent = 3
  info @fexp(@fmul(%%Exponent,@fln(%%Base)))
Back to top
View user's profile Send private message Visit poster's website
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 140

PostPosted: Sat May 07, 2022 1:40 pm    Post subject: Reply with quote

YEAH!!! Nice to see you again!!!!
Thanks por the code it works perfect for my need.
I tell you i mailed to ED1 and i will buy VDS 6 soon. (actually 6.1) Very Happy Very Happy
Back to top
View user's profile Send private message
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Tue May 10, 2022 1:28 am    Post subject: Reply with quote

You won't regret it (6.1)
Back to top
View user's profile Send private message AIM Address
GregLand
Valued Contributor
Valued Contributor


Joined: 15 Jun 2004
Posts: 212
Location: FRANCE

PostPosted: Tue May 10, 2022 2:16 pm    Post subject: Reply with quote

cnodnarb wrote:
You won't regret it (6.1)

I think so Wink
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group