PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Konrad Zak <konrad at uni dot wroc dot pl>
Subject: question on rounding up
Date: Oct 15 1999 2:30PM

hello.
	with following lines i'm trying to get identyfier value for known to me
NAZWA_1 value:

$SQL_helpquery = "select ORGANIZACJA_ID from ORGANIZACJA where NAZWA_1 =
\"$hashRef{'NAZWA_1'}[0]\"";
$ref = $d->ct_sql($SQL_helpquery);
	
and ... perl round ORGANIZACJA_ID=100000...000015 up to 100000...00002,
this is "print @$ref->[0][0];" output:

1.00000000000002e+15

how can I avoid this? I'll appreciate every advice. best regards.

-- 

  Konrad Zak, University of Wroclaw, Wroclaw, POLAND
  The Interfaculty Lab of Computer Networks and Software
  +48 71 3201417