Jump to content

# Create Math formula

## Recommended Posts

Hi Guys

To a clever person this could be easy, I'm struggling with it, it's to work out DCA of crypto purchases over time.

The problem

IF £30.34 buys 0.00128829 of a coin, how much does the full coin cost?

I do hope this isn't a taboo topic here, I'm not making a bot, just an analyzer for a .csv downloaded file

Thanks for looking.

##### Share on other sites

it should be:

```A: B = C: D

30.34: 0.00128829 = C : 1   (C is the unknown)

c = (A * D) / B  (formula to find C)

c = (30.34 * 1) / 0.00128829

1 coin costs 23550.59807962493```

Edited by Chimp

Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Thanks Chimp

##### Share on other sites

Hi again.

I have another mathematical issue, hopefully there is a solution.

I add up a lot of numbers similar to this 0.000012 when the result is in I divide it by another number an example

91.34 / 3069298.36814075

I get a long number with an -e at the end, I was expecting a number similar to 0.000011

Hopefully an easy answer

##### Share on other sites
`ConsoleWrite(StringFormat("%2.10f", 91.34 / 3069298.36814075) & @CRLF)`

Not much of a signature but working on it...

Spoiler

##### Share on other sites

Thanks, works perfect

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account

## Sign in

Already have an account? Sign in here.

Sign In Now
• ### Recently Browsing   0 members

No registered users viewing this page.

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
×
• Create New...