[Gambas-bugtracker] Bug #1550: Error parsing floating numbers

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun Mar 10 04:20:31 CET 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1550&from=L21haW4-

Bob HART reported a new bug.

Summary
-------

Error parsing floating numbers

Type             : Bug
Priority         : High
Gambas version   : 3.12
Product          : Unknown


Description
-----------

Parsing float string does not give correct result.

val("5920.00001") and cfloat("5920.00001") both generate 59200.00001

However,

val("5920.0001") and cfloat("5920.0001") both generate the correct value 5920.0001


System information
------------------

OS:
NAME="Linux Mint"
VERSION="18 (Sarah)"

===============================================================
                                     system         Satellite L50-C (PSKWSA)
/0                                   bus            Type2 - Board Product Name1
/0/0                                 memory         128KiB BIOS
/0/4                                 processor      Intel(R) Core(TM) i5-5200U C
/0/4/8                               memory         32KiB L1 cache
/0/4/9                               memory         256KiB L2 cache
/0/4/a                               memory         3MiB L3 cache
/0/7                                 memory         32KiB L1 cache
/0/27                                memory         8GiB System Memory
/0/27/0                              memory         DIMMProject-Id-Version: lshw
/0/27/1                              memory         8GiB SODIMM DDR3 Synchronous
/0/100                               bridge         Broadwell-U Host Bridge -OPI
/0/100/2                             display        Broadwell-U Integrated Graph
/0/100/3                             multimedia     Broadwell-U Audio Controller
/0/100/14                            bus            Wildcat Point-LP USB xHCI Co
/0/100/14/0              usb3        bus            xHCI Host Controller
/0/100/14/1              usb2        bus            xHCI Host Controller
/0/100/14/1/1                        bus            USB2.0 Hub
/0/100/14/1/1/2          scsi3       storage        External USB 3.0
/0/100/14/1/1/2/0.0.0    /dev/sdb    disk           3TB External USB 3.0
/0/100/14/1/1/2/0.0.0/1  /dev/sdb1   volume         127MiB reserved partition
/0/100/14/1/1/2/0.0.0/2  /dev/sdb2   volume         2794GiB Windows NTFS volume
/0/100/14/1/1/3                      input          USB Receiver
/0/100/14/1/6                        communication  Bluetooth wireless interface
/0/100/14/1/7                        multimedia     TOSHIBA Web Camera - HD
/0/100/16                            communication  Wildcat Point-LP MEI Control
/0/100/1b                            multimedia     Wildcat Point-LP High Defini
/0/100/1c                            bridge         Wildcat Point-LP PCI Express
/0/100/1c.2                          bridge         Wildcat Point-LP PCI Express
/0/100/1c.2/0            wlp7s0      network        Wireless 3160
/0/100/1c.3                          bridge         Wildcat Point-LP PCI Express
/0/100/1c.3/0            enp8s0      network        RTL8111/8168/8411 PCI Expres
/0/100/1c.4                          bridge         Wildcat Point-LP PCI Express
/0/100/1c.4/0                        display        GM108M [GeForce 930M]
/0/100/1c.5                          bridge         Wildcat Point-LP PCI Express
/0/100/1c.5/0                        generic        RTS5229 PCI Express Card Rea
/0/100/1d                            bus            Wildcat Point-LP USB EHCI Co
/0/100/1d/1              usb1        bus            EHCI Host Controller
/0/100/1d/1/1                        bus            USB hub
/0/100/1f                            bridge         Wildcat Point-LP LPC Control
/0/100/1f.2                          storage        Wildcat Point-LP SATA Contro
/0/100/1f.3                          bus            Wildcat Point-LP SMBus Contr
/0/1                     scsi0       storage        
/0/1/0.0.0               /dev/sda    disk           1TB TOSHIBA MQ01ABD1
/0/1/0.0.0/1             /dev/sda1   volume         511MiB Windows FAT volume
/0/1/0.0.0/2             /dev/sda2   volume         923GiB EXT4 volume
/0/1/0.0.0/3             /dev/sda3   volume         8104MiB Linux swap volume
/0/2                     scsi1       storage        
/0/2/0.0.0               /dev/cdrom  disk           DVD-RAM UJ8G2
/0/2/0.0.0/0             /dev/cdrom  disk           
/1                                   power          CRB Battery 0
/2                                   power          OEM Define 5




More information about the Bugtracker mailing list