Python Forum
issue with converting a scientific notation to standard notation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
issue with converting a scientific notation to standard notation
#2
In your code, val and number are strings, not a number. To convert numeric strings to numbers use int(str) or float(str).
val = float(ps.query('IOUT?'))
number = float(dmm.query("MEAS?"))
Gribouillis likes this post
Reply


Messages In This Thread
RE: issue with converting a scientific notation to standard notation - by deanhystad - Jun-01-2023, 06:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Forcing matplotlib to NOT use scientific notation when graphing sawtooth500 4 566 Mar-25-2024, 03:00 AM
Last Post: sawtooth500
  ''.join and start:stop:step notation for lists ringgeest11 2 2,540 Jun-24-2023, 06:09 AM
Last Post: ferdnyc
  notation MCL169 8 1,660 Apr-14-2023, 12:06 PM
Last Post: MCL169
  Issue in writing sql data into csv for decimal value to scientific notation mg24 8 3,281 Dec-06-2022, 11:09 AM
Last Post: mg24
  Music Notation editor; how to build the editor? direction to go? philipbergwerf 1 1,800 Jan-01-2022, 04:56 PM
Last Post: Larz60+
  Graphics Formatting - X-axis Notation and Annotations - Matplotlib silviover_junior 0 1,880 Mar-17-2021, 01:19 PM
Last Post: silviover_junior
  How to understand the byte notation in python3 blackknite 3 3,042 Feb-23-2021, 04:45 PM
Last Post: bowlofred
  Winsorized Mean and Standard Deviation Wheeliam 0 1,879 Jul-11-2020, 05:27 PM
Last Post: Wheeliam
  standard library modules chpyel 4 2,936 May-10-2020, 02:58 PM
Last Post: snippsat
  Simple question concerning python dot notation. miner_tom 1 1,994 Mar-24-2020, 05:20 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020