Python Forum
Dictionary with ranges that have a float step value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dictionary with ranges that have a float step value
#1
Hello to all!

I need to create dictionary like this:
rcd_curr = {'SOUR:SAF:RCDC': {0.025: (?????), 0.25: (???????), 2.5: (???????)}}
for key 0.025 I need generate values from 0.020 with step 0.0001
for key 0.25 I need generate values from 0.21 with step 0.001
for key 2.5 I need generate values from 2.1 with step 0.01
can anyone help with?
Reply


Messages In This Thread
Dictionary with ranges that have a float step value - by Irv1n - Apr-21-2021, 07:35 PM
RE: Dictionary with range - by menator01 - Apr-21-2021, 07:58 PM
RE: Dictionary with range - by Yoriz - Apr-21-2021, 09:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python calculate float plus float is incorrect? sirocawa 6 315 Apr-16-2024, 01:45 PM
Last Post: DeaD_EyE
  [SOLVED] [loop] Exclude ranges in… range? Winfried 2 1,475 May-14-2023, 04:29 PM
Last Post: Winfried
  Delete all Excel named ranges (local and global scope) pfdjhfuys 2 1,807 Mar-24-2023, 01:32 PM
Last Post: pfdjhfuys
  Two operations in two ranges salwa17 3 2,154 Jun-22-2020, 04:15 PM
Last Post: perfringo
  Comaparing Float Values of Dictionary Against A Float Value & Pick Matching Key firebird 2 3,399 Jul-25-2019, 11:32 PM
Last Post: scidam
  iterating a list of ranges Skaperen 1 2,040 May-22-2019, 07:44 AM
Last Post: Gribouillis
  Subnet Mask Ranges ab52 0 1,825 Mar-11-2019, 10:39 AM
Last Post: ab52
  joined ranges Skaperen 4 3,217 Apr-03-2018, 07:14 PM
Last Post: Gribouillis
  a dictionary of ranges Skaperen 10 6,146 Dec-02-2017, 11:29 PM
Last Post: Windspar
  compacting multiple ranges Skaperen 2 3,113 Oct-11-2017, 08:33 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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