you need a buffer large enough to host the text, then there are functions to convert a double to its ASCII representation for example:
void pressureUpdate() {
char html[20];
snprintf(html, sizeof html, "P = %lf", P);
server.send(200, "text/html", html);
}