BMessage msg(B_SET_PROPERTY); msg.AddFloat("volume", 0.5); float volume; if (msg.FindFloat("volume", &volume) == B_OK) { printf("Volume is %f\n", volume); }In this example, we create a new BMessage object and add a float value called "volume" to it. We then use the FindFloat() method to locate the "volume" value within the BMessage object and store it in the 'volume' variable. If the value is found, we print it to the console. The package library for BMessage is included in the BeOS/Haiku operating system.