I work this way, although it converts from "real_t" to "double"
String::num_real( Engine::get_singleton()->get_frames_per_second() )
Console message from godot ..
Godot::print( String::num_real( Engine::get_singleton()->get_frames_per_second() ) );
Thanks for the Engine tip Engine::get_singleton()->get_frames_per_second()
, I didn't even imagine it.
I leave the complete code where I do the casting in the Node of type Label.
void InstanciarCubos::_process(const double p_delta)
{
if(FpsText == nullptr) return;
FpsText->set_text("FPS= " + String::num_real( Engine::get_singleton()->get_frames_per_second() ) );
Godot::print( String::num_real( Engine::get_singleton()->get_frames_per_second() ) );
}