Opcodes to convert between different amplitude measurements are:
ampdb
ampdbfs
db
dbamp
dbfsamp
Use rms to find the rms value of a signal. See also 0dbfs for another way to handle amplitudes in csound.