Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mutiplication of number and string?

Status
Not open for further replies.

pacificpear

Programmer
Dec 27, 2004
25
0
0
US
hi

Acess/cr10

I have two column probabilitycode(string) and amount(number)

I need to mutiply these two columns.

How do i convert string to number so that it can be calulated
table
probabilitycode amount
0 10
0 20
10 19
12 32


expected result

table
probabilitycode amount newprobapilitycode
0 10 0
0 20 0
10 19 190
12 32 384

thanks
-pp



 
Create a formula:
//@NewProbabilityCode
ToNumber({Table.ProbabilityCode}) * {Table.Amount}

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top