There are two methods:

  • float_number = float(decimal_number)
  • float_number = decimal_number * 1.0

First one using the built in function and second one without any function, but take care about the 1.0 not 1 as it should be float so the result will be float.

Answer from Amr Magdy on Stack Overflow
๐ŸŒ
VisibleEarth
h-schmidt.net โ€บ FloatConverter โ€บ IEEE754.html
IEEE-754 Floating Point Converter
This page allows you to convert between the decimal representation of a number (like "1.02") and the binary format used by all modern CPUs (a.k.a. "IEEE 754 floating point").
๐ŸŒ
Exploring Binary
exploringbinary.com โ€บ home โ€บ decimal to floating-point converter
Decimal to Floating-Point Converter - Exploring Binary
June 1, 2018 - It will convert a decimal number to its nearest single-precision and double-precision IEEE 754 binary floating-point number, using round-half-to-even rounding (the default IEEE rounding mode). It is implemented with arbitrary-precision arithmetic, so its conversions are correctly rounded.
๐ŸŒ
Numeral-systems
numeral-systems.com โ€บ ieee-754-converter
IEEE-754 floating point numbers converter
This calculator can be used to convert decimal numbers to a binary floating point number in IEEE-754 format or vice versa.
๐ŸŒ
Mc
sandbox.mc.edu โ€บ ~bennet โ€บ cs110 โ€บ flt โ€บ dtof.html
Decimal to Floating-Point Conversions
Convert -1313.3125 to IEEE 32-bit floating point format. The integral part is 131310 = 101001000012. The fractional: So 1313.312510 = 10100100001.01012. Normalize: 10100100001.01012 = 1.010010000101012 ร— 210. Mantissa is 01001000010101000000000, exponent is 10 + 127 = 137 = 100010012, sign bit is 1. So -1313.3125 is 11000100101001000010101000000000 = c4a42a0016 ยท Convert 0.1015625 to IEEE 32-bit floating point format.
๐ŸŒ
Flexiple
flexiple.com โ€บ python โ€บ convert-decimal-float-python
Converting Decimal to Float in Python - Flexiple
March 22, 2024 - However, due to the limited precision of floats, the result is slightly inaccurate. To maintain precision, we should perform the calculation entirely with decimals: result = decimal_num * Decimal('3.14') print(result) # Output: 6.594 ยท The use cases for converting decimals to floats are numerous.
๐ŸŒ
Binary Convert
binaryconvert.com โ€บ convert_float.html
Float (IEEE754 Single precision 32-bit) Converter
Online binary converter. Supports all types of variables, including single and double precision IEEE754 numbers
๐ŸŒ
Evanw
evanw.github.io โ€บ float-toy
Float Toy
Click on a cell below to toggle bit values, or edit the hex or decimal values directly. Use this to build intuition for the IEEE floating-point format.
Find elsewhere
๐ŸŒ
UAF
cs.uaf.edu โ€บ ~cs301 โ€บ notes โ€บ node49.html
Decimal to Floating Point Conversion
Decimal to Floating Point Conversion ยท To convert a decimal number to binary floating point representation:
๐ŸŒ
Baseconvert
baseconvert.com โ€บ ieee-754-floating-point
IEEE 754 Floating Point Converter - Base Convert
Online number base converter for binary, hexadecimal, octal, decimal, roman numerals, balanced ternary, negabinary, factorial, bijective, and any radix. Supports high precision and fractional values.
๐ŸŒ
Observable
observablehq.com โ€บ @benaubin โ€บ floating-point
Floating Point Calculator / Ben Aubin | Observable
April 28, 2023 - Calculate IEEE-754 style floating point numbers with arbitrary precision (`p`) and range (`q`). Enter as decimal aproximation, hex, or click to modify the binary digits Deconstructed Representation bias/min/max implementation details
๐ŸŒ
Inductive Automation
forum.inductiveautomation.com โ€บ ignition
Convert decimal to float - Ignition - Inductive Automation Forum
October 24, 2023 - I would like to know how to convert a value in decimal, that comes from opc (this means for example decimal 3, in boolean 00000000 00000011) to float format cause it's really a real (or float) value. Thanks!
๐ŸŒ
Omni Calculator
omnicalculator.com โ€บ other โ€บ floating-point
Floating-Point Calculator
August 7, 2025 - The floating-point calculator is here to help you understand the IEEE754 standard for the floating-point format. It acts as a converter for floating-point numbers โ€” it converts 32-bit floats and 64-bit floats from binary representations to real decimal numbers and vice versa.
๐ŸŒ
Ultimate Solver
ultimatesolver.com โ€บ en โ€บ ieee-754
Decimal number โ†” IEEE 754
With this converter you can convert a decimal number into a floating point number (IEEE) and vice versa.