TM1637 Voltmeter[SOLVED]

I’m trying to make a simple voltmeter using an TM1637 to display the voltage.

In the serial monitor it displays the correct values but on the TM1637 it only displays 0002,

The last digit goes from 0-4 when I move the pot.

is it possible to display 02.63 say like it does in the serial monitor ?

Here’s my current code that I’m trying

#include <Arduino.h>
#include <TM1637Display.h>

#define ECHO_PIN     11  // Arduino pin tied to echo pin on the ultrasonic sensor.
#define MAX_DISTANCE 200 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm.
float input_voltage ;

// Module connection pins (Digital Pins)
#define CLK 2
#define DIO 3

TM1637Display display(CLK, DIO);

void setup() {
  Serial.begin(9600); // Open serial monitor at 115200 baud to see ping results.

void loop() {
  int analog_value = analogRead(A0);
   input_voltage = (analog_value * 5.0) / 1024.0; 
// calculate number for each figure number
  uint8_t data[] = { 0x0, 0x0, 0x0, 0x0 };
  display.showNumberDec(input_voltage, false, 3,1);

This function

  display.showNumberDec(input_voltage, false, 3, 1);

takes an 'int' as the first input, not a floating point number. If you want to turn on a decimal point, you need to use the 'showNumberDecEx();' function.

That function also only takes an integer value. If you want to show 2.63, you will need to pass the integer 263 and then turn on the appropriate decimal point. The library does not handle floating point directly.