Python Forum
Adding a comma in the resulting value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a comma in the resulting value
#2
data_from_the_device = [1663]
written_as = data_from_the_device[0] * 0.1
print(written_as)
Output:
166.3
stsxbel likes this post
Reply


Messages In This Thread
Adding a comma in the resulting value - by stsxbel - May-15-2021, 08:59 PM
RE: Adding a comma in the resulting value - by Yoriz - May-15-2021, 10:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to fix With n_samples=0, test_size=0.2 and train_size=None, the resulting train s MrSonoa 2 3,171 Apr-15-2023, 12:02 PM
Last Post: MrSonoa
  [SOLVED] [BeautifulSoup] Turn select() into comma-separated string? Winfried 0 1,149 Aug-19-2022, 08:07 PM
Last Post: Winfried
  How to format Excel column with comma? dee 0 1,405 Jun-13-2022, 10:11 PM
Last Post: dee
  How to store the resulting Doc objects into a list named A xinyulon 1 1,932 Mar-08-2022, 11:49 PM
Last Post: bowlofred
  decimal comma DPaul 9 2,351 Feb-22-2022, 12:25 PM
Last Post: DeaD_EyE
  How to instantly add quotation marks and comma for parameters? cheers100 4 8,224 Oct-22-2020, 12:51 PM
Last Post: cheers100
  print scripts example includes comma that seems to serve no purpose flour_power_33 5 2,860 Sep-02-2020, 03:32 AM
Last Post: flour_power_33
  Grabbing comma separed values from SQLite and putting them in a list PythonNPC 8 4,160 Apr-10-2020, 02:39 PM
Last Post: buran
  Phyton code to load a comma separated csv file in to a dict and then in to a dB mrsenorchuck 2 2,694 Nov-29-2019, 10:59 AM
Last Post: mrsenorchuck
  Adding markers to Folium map only adding last element. tantony 0 2,169 Oct-16-2019, 03:28 PM
Last Post: tantony

Forum Jump:

User Panel Messages

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