How can I get accurate value of temperature and humidity from DHT11 and NodeMCU

I would like to measure the temperature and humidity from DHT11 sensor and NodeMCU.
To do so, I made some code by using two libraries.

But none of these can give me an accurate number of humidity and temperature value.
All I can get an output are like followings.

Temperature = 21.0000
Humidity = 48.0000

Please give me a hint to upgrade my code.

First code
#include <DHTesp.h>

DHTesp dht;

void setup(){

Serial.begin(9600);
pinMode(0, INPUT);
dht.setup(0, DHTesp::DHT11);
}
void loop(){
Serial.print("Temperature = ");
Serial.println(dht.getTemperature(), 4);
Serial.print("Humidity = ");
Serial.println(dht.getHumidity(), 4);
delay(1000);
}

Seconde code
#include <DHT.h>
DHT dht(0, DHT11);

void setup() {
Serial.begin(9600);
pinMode(0, INPUT);
dht.begin();
}

void loop() {

float humidity = dht.readHumidity();
float temp = dht.readTemperature();
delay(500);
Serial.println(humidity);

}

What is your "accuracy" requirement and is it within the capability of the DHT11 device?

My English expression is not so accurate.
What I want to get is for example 21.8 Deg and 48.3% Hum.
But DHT11 just return 21.0000 48.0000 only.
It looks like DHT11 returns integer values instead of float values.

gfvalvo:
What is your “accuracy” requirement and is it within the capability of the DHT11 device?

What I want to get is float value return, like I wrote following reply

does it have to be accurate as
21.8 43.7
or
28.76 43.69

or
28.758 43.687

there should be a lot of demo-code in the internet of just reading a DHT11
what results do you get if you use on eof these demo-codes?
best regards Stefan