.section .data
input:
.ascii "%f"
.section .bss
there:
.zero 4
.section .text
.global main
main:
pushl $there
push $input
call scanf
pushl there
push $input
call printf
call exit
Hello, i am struggling with printing float number in assembler. When I use format %d, number is shown correctly homever, I want to print float number. When I write for ex. 24.14 to my input i get strange results: 977035033722559154240093725614126257117369595496927687166085442682436777626733727512453867836858602465787904.000000. Homever when I change to %d format and write to input for ex. 24 the result is correct: 24.